Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Do I Change Comma and Bracket Colors in VS Code

Sounds kinda of dumb, but I can't figure out how to target this type of text. What is the command to change the color of commas, quotes, brackets, etc in VS Code 1.5?

Thanks a lot

like image 322
Irakli Avatar asked Aug 17 '17 17:08

Irakli


People also ask

How do I change the color of my braces in Visual Studio?

To change item foreground and background colors in Visual Studio 2010 Ultimate fallow this: Tools->Options->Environment->General->Fonts and Colors. This worked for me to change Brace Matching(Rectangle) from default color which was barley visible, to my own chosen color.

How do I enable Rainbow brackets in VS Code?

Bracket pair coloring can be enabled by setting editor. bracketPairColorization. enabled to true. The bracket colors can be declared in a theme, or can be set through the setting workbench.


1 Answers

settings.json Ctrl+,

"editor.tokenColorCustomizations": {
    "textMateRules": [{
        "scope": "punctuation",
        "settings": {
            "foreground": "#ffffff"
        }
    }]
}

https://code.visualstudio.com/docs/extensions/themes-snippets-colorizers#_textmate-theme-rules

https://www.sublimetext.com/docs/3/scope_naming.html

like image 162
Alex Avatar answered Oct 14 '22 05:10

Alex