This extension is a tool that focuses user attention by reducing the opacity of irrelevant code while reading through it.
Double-click the variable name to see the effect.
Double-clicking a variable name highlights the code block where the variable is declared.
Double-clicking a variable name will highlight all its usages.
This can occur in the following situations:
- The variable is not referenced elsewhere and only appears at the current location.
- The corresponding Language Server for the code has not been enabled.
Sometimes, the ColorTheme includes styling for editor.selectionHighlightBorder. Due to the limitations of the APIs within VS Code Extension, this specific item cannot be overridden, it can only be addressed by customizing configuration settings.
You can resolve this by adding the following code to .vscode/settings.json:
"workbench.colorCustomizations": {
"editor.selectionHighlightBorder": "default"
}- This extension relies on code range results provided by the Language Server, support levels vary slightly among different Language Servers compared to the built-in
JavaScript/TypeScriptsupport. - Achieving finer-grained highlighting depends on improvements in the capabilities of the Language Server, specifically its ability to track variable ranges down to the column level.
- LaurieWired Inspired by her tweet
MIT



