VS Code highlight all occurrences of a variable?

Pressing Ctrl + F2 marks all occurrences of the variable housingLocation. I also mark housingLocation in comments or when HousingLocation is capitalized at the beginning .

Is there a way to only display all occurrences of the variable housingLocation

to mark in VS Code. If so, how?

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
4 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
SalatAufemBrot
5 months ago

str+F, enter the variable name, and then activate case-sensitive search

ajkcdajefiu
5 months ago

use the built-in search function, Ctrl + F

there are filters that you can set to get only whole words and be case-sensitive

HabVerkliqt
5 months ago

I don’t know how it goes with the comments. But, you can also turn on case sensitivity in the Search menu: