S
S
Senseich2019-10-02 03:30:20
Visual Studio Code
Senseich, 2019-10-02 03:30:20

Wrong VS Code highlighting, how to adjust?

Hello! Today I decided to master this editor and immediately noticed a strange highlight.
1) In HTML files, the lines of the beginning and end of tags do not highlight the current tag on which the cursor is, but the parent one, can this be configured somehow?
5d93ee20236ad056452931.png
2) In PHP files where there is HTML markup, for some reason all the same words are highlighted if the cursor is set to this word. In a regular file where there is only HTML code or only PHP code, this effect is only when you double-click on a word ... but here I just put the cursor on the word and "the whole sky is in parrots") Is it possible to configure this too?
5d93ef2838e04634553146.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rst0, 2022-01-31
@Rst0

1) in settings.json add a section:

"workbench.colorCustomizations": {
        "editorIndentGuide.background": "#00ff00",
        "editorIndentGuide.activeBackground": "#ff0000",
}

this will override any of your current theme settings.
the stripes highlight the active indent, not the paired tag.
full list of properties
https://code.visualstudio.com/api/references/theme...
most importantly, there are two sections with settings (general and editor) and they are written a little differently:
workbench.colorCustomizations": {
        "editor.foreground": "#d4d4d4"
},
"editor.tokenColorCustomizations":{
 "textMateRules": [
          {
              "name": "operator logical",
              "scope": "keyword.operator.logical",
              "settings": {
                "foreground": "#eeaf51"
              }
           }
]
}

Service for creating your own themes
https://themes.vscode.one/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question