Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable automatic symbol highlighting VSCode?

In VSCode when the cursor is on a symbol (function name, var name, etc) the symbol gets highlighted automatically across the document.

Here is an example:

screenshot

I've searched multiple times in the settings file but the only match for highlight is editor.selectionHighlight which I have set to false and it does something else anyway.

How can I disable this automatic highlighting?

like image 979
Pier Avatar asked Jul 16 '16 17:07

Pier


People also ask

How do I turn off highlighting in VS Code?

Go to Preferences -> Settings and there search for Highlight. A lot of option would appear, but the ones useful would be under the Text Editor section. Also, you could decide if change it globally (through the User Settings) or just for that window (Workspace Settings).

What is semantic highlighting VS Code?

What is Semantic Highlighting? Semantic Highlighting is a revolutionary way of highlighting code not by syntax selectors or token names, but by variable names. In this way, a variable fun would be colored the same no matter where it appeared in the code.


1 Answers

This feature was just implemented.

https://github.com/Microsoft/vscode/issues/5351#event-982256414

The solution will be (once the changes are pushed to the public channel in March 2017) to use editor.occurrencesHighlight in the config file.

like image 191
Pier Avatar answered Oct 07 '22 17:10

Pier