Matching exact string or word in VSCode

Viewed 5221

I'm trying to search for specific word strings or text in VSCode by using double quotes. I trying to find for example occurrences of "Video" without seeing "video library" occurrences. Any suggestions?

2 Answers
  1. Ctrl+F
  2. Turn on regular expression search (marked with red arrow)

enter image description here

You see in the screesnshot it matches exactly 'video' keyword

If you want case sensitivity, then turn on the arrow mark button enter image description here

You have to toggle (enable) both "Match Case" and "Match Whole Word".

"Match Whole Word" will only search for exact matches and by matching case, you should be achieve your goal.

See Image

Related