Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matching exact string or word in VSCode

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?

like image 311
max Avatar asked Sep 30 '20 22:09

max


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

like image 174
Vivek Bani Avatar answered Sep 19 '22 12:09

Vivek Bani


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

like image 29
A J S Raja Ravi Varman Avatar answered Sep 19 '22 12:09

A J S Raja Ravi Varman