Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Difference between revisions of "VS Code"

From Roll20 Wiki

Jump to: navigation, search
m
(add extension recs)
Line 1: Line 1:
 
<noinclude>{{revdate}}{{stub}}</noinclude>
 
<noinclude>{{revdate}}{{stub}}</noinclude>
  
* '''[https://app.roll20.net/forum/permalink/10515058/ Roll20 Syntax Highlight]''' -forum thread
+
[https://code.visualstudio.com/ Visual Studio Code(VS Code)] is a popular text editor. It's free, and available for Windows/Linux/Mac, as well as accessible online through [https://vscode.dev vscode.dev].  
* '''[https://marketplace.visualstudio.com/items?itemName=anduh.rmacro Roll20 Syntax Highlight VS Code Extension]'''
+
  
 +
VS Code has some uses with Roll20, primarily for editing complicated [[macros]], and for [[:Category:Character Sheet Creation|Character Sheet Creation]].
  
An Extension for [https://code.visualstudio.com/ Visual Studio Code]-text editor, to make roll20 macro and API command writing & troubleshooting easier. Visual Studio Code is a free text editor for Windows/Linux/Mac.  
+
==Extensions==
 +
Here are some useful Extensions:
 +
 
 +
===Roll20 Syntax Highlight===
 +
[[File:Vscode-rmacro-use-examples.gif|right|thumb|600px]]
 +
by [[Andreas J.]]
 +
Extension to make roll20 macro and API command writing & troubleshooting easier. Higlight works when you use VSCode to view <code>.rmacro</code>-files.
 +
 
 +
* bracket pairing & highlights
 +
** shows with colors which brackets/parentheses belong together(making mismatched brackets easier to find)
 +
** also does this for roll20 macros syntaxes (<code>@{ }</code>, <code>?{ }</code>, <code>%{ }</code>, <code>&{ }</code>, <code>$[[ ]]</code>)
 +
* syntax highlight
 +
** roll, macro & API commands (e.g. <code>/r</code>, <code>!example</code>, <code>#dex</code>)
 +
** in dice rolls, <code>d</code> & <code>dF</code>
 +
** some common keywords, like <code>selected</code>, <code>template</code>, <code>%%NEWLINE%%</code>
 +
** special characters used in macros (e.g. <code>~,|#=+</code>, and [[HTML Entities]])
 +
* [https://github.com/Anduh/rmacro#features Features: full summary]
 +
 
 +
Links:
 +
* [https://marketplace.visualstudio.com/items?itemName=anduh.rmacro Extension] - VSCode Marketplace & Full Details
 +
* [https://app.roll20.net/forum/permalink/10515058/ Roll20 Syntax Highlight] -forum thread
 +
===Roll20 Sheet Dev===
 +
[[File:Vscode-sheetdev-hover-swgcolors.gif|right|thumb|600px]]
 +
by [[Andreas J.]]
 +
 
 +
Extension to help with [[BCS|character sheet development]]
 +
 
 +
Features:
 +
* auto-completion, info, & documentation links for roll20-specific HTML elements & attributes
 +
* syntax highlight for [[Building_Character_Sheets/Roll_Templates|rolltemplates]] & [[sheetworkers]](javascript)-code inside HTML files
 +
* snippet shortcuts for HTML & [[Sheet_Author_Tips#PUG|PUG]]
 +
* [https://github.com/Anduh/vscode-roll20dev#features Features: full summary]
 +
 
 +
Links:
 +
* [https://marketplace.visualstudio.com/items?itemName=anduh.roll20sheetdev Extension] - VSCode Marketplace
  
 
<noinclude>
 
<noinclude>

Revision as of 16:57, 17 December 2021


Visual Studio Code(VS Code) is a popular text editor. It's free, and available for Windows/Linux/Mac, as well as accessible online through vscode.dev.

VS Code has some uses with Roll20, primarily for editing complicated macros, and for Character Sheet Creation.

Extensions

Here are some useful Extensions:

Roll20 Syntax Highlight

Vscode-rmacro-use-examples.gif

by Andreas J. Extension to make roll20 macro and API command writing & troubleshooting easier. Higlight works when you use VSCode to view .rmacro-files.

  • bracket pairing & highlights
    • shows with colors which brackets/parentheses belong together(making mismatched brackets easier to find)
    • also does this for roll20 macros syntaxes (@{ }, ?{ }, %{ }, &{ }, $[[ ]])
  • syntax highlight
    • roll, macro & API commands (e.g. /r, !example, #dex)
    • in dice rolls, d & dF
    • some common keywords, like selected, template, %%NEWLINE%%
    • special characters used in macros (e.g. ~,|#=+, and HTML Entities)
  • Features: full summary

Links:

Roll20 Sheet Dev

Vscode-sheetdev-hover-swgcolors.gif

by Andreas J.

Extension to help with character sheet development

Features:

Links: