About 1,120,000 results
Open links in new tab
  1. Syntax Highlight Guide | Visual Studio Code Extension API

    Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords like if or for in JavaScript differently than strings and comments and variable names.

  2. Set language for syntax highlighting in Visual Studio Code

    To solve this you can Cmd + Shift + P → "install Extensions" and look for the language you want to add, say "Scala". Find the suitable Syntax package, install it and reload. This will pick up the correct syntax for your files with the predefined extension, i.e. .scala in this case.

  3. Customizing syntax highlighting in Visual Studio Code

    Jul 1, 2016 · I'm currently trying to write an extension for a new file type (ANTLR) and wonder how to change the colors used for syntax highlighting in Visual Studio Code. To me it looks as if that is not defined in the extension, but somewhere else.

  4. Semantic Highlight Guide | Visual Studio Code Extension API

    Semantic highlighting is an addition to syntax highlighting as described in the Syntax Highlight guide. Visual Studio Code uses TextMate grammars as the main tokenization engine. TextMate grammars work on a single file as input and break it up based on lexical rules expressed in regular expressions.

  5. Syntax Highlighter - Visual Studio Marketplace

    Provides universal syntax coloring engine for almost any programming language. See list of currently supported languages above. Under the hood the extension utilizes VSCode Semantic Token API to override syntax coloring provided by standard TextMate regex matching.

  6. Quick Custom Syntax Highlighting in VS Code | by Arden

    May 27, 2020 · The VS Code documentation states that there are two ways to create syntax highlighting rules. Either by referencing an existing TextMate theme (.tmTheme file), or by creating our own custom...

  7. Selecting Preferred Extension for Syntax Highlighting in VS Code

    Oct 9, 2023 · Annoyingly VS Code is choosing to use the syntax hightlighting from B rather than the one for A when both are enabled. There doesn't appear to be any extension specific setting for disabling the highlighter for extension B, and it's …

  8. How to Enable Syntax Highlighting in Visual Studio Code?

    Jul 8, 2023 · To enable highlighting syntax in Visual Studio Code, follow these steps: 1. Check the syntax highlighting extension: First, make sure you have the corresponding extension installed in Visual Studio Code. You can access the extension store from the …

  9. Mastering VS Code Extensions: Language Support and IntelliSense

    Aug 9, 2024 · Syntax Highlighting: Colors and styles that distinguish different elements of your code, making it easier to read and understand. Code Snippets: Predefined templates that speed up coding by auto-completing boilerplate code. IntelliSense: Advanced code editing features, including auto-completion, parameter info, quick info, and member lists.

  10. TIL: How To Add Custom Syntax Highlighting Rules in VS Code

    Dec 27, 2022 · It turns out we can do this with our own custom rules using editor.tokenColorCustomizations. To do this go to our settings (settings.json) and add something like: Where: We can find out what we should set the scope as by going to the command palette and selecting Developer: Inspect Editor Tokens and Scopes.

Refresh