The VSCode documentation contains details on how to create new colorizers using .tmLanguage
files. The Monaco editor which VSCode uses has support for defining syntax highlighters using the JSON-based Monarch format, but I can't see how to use Monarch for defining syntaxes in VSCode extensions.
Is there a way to define a new VSCode syntax using the Monarch format rather than textmate style language files?
Advanced customization To configure keyboard shortcuts through the JSON file, open Keyboard Shortcuts editor and select the Open Keyboard Shortcuts (JSON) button on the right of the editor title bar. This will open your keybindings.json file where you can overwrite the Default Keyboard Shortcuts.
Multiple selections (multi-cursor) A common way to add more cursors is with Shift+Alt+Down or Shift+Alt+Up that insert cursors below or above.
No, VSCode currently only supports the .tmLanguage
format. To quote one of the team members in #216:
First we had Monarch support as well, but before the API deadline decided to go fully for text mate to keep the API simple.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With