3 ms·
I love VS Code, but I'm getting a little disheartened after bringing this up almost every release. Is there a plan to improve the syntax highlighting? I know th
by ralusek 10y ago
I love VS Code, but I'm getting a little disheartened after bringing this up almost every release. Is there a plan to improve the syntax highlighting? I know there are custom themes, etc, but they all seem to have the same elements available to them.
The JS syntax highlighting can't distinguish between properties and variables, or properties that are functions, or object literal keys. It's almost there, but it's lacking enough to actually be quite bothersome, with no progress so far that I can tell.
- biot 10y agoIt's open source. Make the change and use it yourself, then submit as a pull request. [edit: link removed; see Tyriar's reply for correct repo]
- Tyriar 10y agoThis is the source repo for both JS and TS grammars https://github.com/Microsoft/TypeScript-TmLanguage https://github.com/Microsoft/TypeScript-TmLanguage
- Tyriar 10y agoWe packaged up Atom's JavaScript grammar into an extension which is probably just what you're looking for https://marketplace.visualstudio.com/items?itemName=ms-vscode.js-atom-grammar https://marketplace.visualstudio.com/items?itemName=ms-vscod...
- qarioz 10y agoThat's exactly the problem. Atom, sublime, and vs code use TextMate's syntax parsing engine https://manual.macromates.com/en/language_grammars https://manual.macromates.com/en/language_grammars But the implementation is different. You could just copy the .plist or the .tmLanguage file, but it's useless if it's not implemented or different on vs code.