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:
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?
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? 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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With