Where can I find a list of all possible keys for tm-themes for syntax highlighting?

tmLanguage scope names are based on convention, so there’s no definitive list. The “Naming Conventions” section at the bottom of this TextMate Manual page is fairly comprehensive though. You can also check what scopes are highlighted by VSCode’s default themes, see for instance dark_plus.json and dark_vs.json (which the former is based on / includes). Finally, … Read more

Create Custom Language in Visual Studio Code

It’s possible with the new version 0.9.0. There’s an official documentation on how to add a custom language: https://github.com/microsoft/vscode-docs/blob/main/release-notes/v0_9_0.md You need a .tmLanguage file for the language you want to add. You can find existing files e.g. on GitHub or you can define your own language file. Look here to get an idea of how … Read more

Regex look behind in VS Code?

You can use infinite-width lookahead and lookbehind without any constraint now beginning with Visual Studio Code v.1.31.0 release. See proof: and another one (with (?<=@fmt\([^()]*)\w+ pattern, note the * in the lookbehind): See the Github [VSCode 1.31] ES2018 RegExp lookbehind assertions are now supported #68004 issue: As a result of moving to Electron 3.0, RegExp … Read more