Occurrences highlighting When you place your cursor on a variable, VS Code highlights all references to it in the current file. These occurrences are also shown in the scrollbar.