How to turn off matching highlighting

I do not want Visual Studio Code to highlight the corresponding brackets, all occurrences of the same variable, etc. I find it very distracting. However, I cannot disable this feature.

The only selection options that I seem to be able to change are "editor.selectionHighlight" and "editor.renderLineHighlight", and none of them work.

Can I turn off backlight matching? Or maybe change my theme so that the highlight color and the selected frame are the same as the background color?

+11
visual-studio-code
source share
3 answers

There are different types of backlight:

  1. Syntax highlighting (place the cursor in a variable) enter image description here
"editor.occurrencesHighlight": false 
  1. Highlight highlight (similar fragments in the document) enter image description here
 "editor.selectionHighlight": false 
  1. Highlight matching brackets
 "editor.matchBrackets": false 

There is a second way - to make them less intrusive (or completely transparent):

 "workbench.colorCustomizations": { "editor.selectionHighlightBackground": "#0000", // similar selection "editor.selectionHighlightBorder ": "#0000", "editor.wordHighlightStrongBackground": "#0000", // syntax variable assignment "editor.wordHighlightStrongBorder": "#0000", "editor.wordHighlightBackground": "#0000", // syntax variable "editor.wordHighlightBorder": "#0000", "editorBracketMatch.border": "#0000",// brackets "editorBracketMatch.background": "#0000", } 
+13
source share

I finally understood how,

Try this "editor.matchBrackets": false in settings - User / Workspace Settings

image here

Hope it helps.

+6
source share

Try going to Preferences-> User Settings
In settings.json on the right add:

 "editor.selectionHighlight": false 
+3
source share

All Articles