Is there a way to search for text in all files in a directory using VS Code?
I.e., if I type \"find this\" in my search, it will search through all the files in the
This action is not bound to a key by default, to bind it do this:
Press Ctrl + Shift + F
click on 3 dots under search box.
type your query in search box
type ./FOLDERNAME in files to include box and click Enter
Alternative way to this is, Right click on folder and select Find in Folder
Search across files - Press Ctrl+Shift+F
Find - Press Ctrl+F
Find and Replace - Ctrl+H
For basic editing options follow this link - https://code.visualstudio.com/docs/editor/codebasics
Note : For mac the Ctrl represents the command button
And by the way for you fellow googlers for selecting multiple folders in the search input you separate your directories with a comma. Works both for exclude and include
Example: ./src/public/,src/components/
Enter Search Keyword in search (CTRL + SHIFT + F)
Exclude unwanted folder's/files by using exclude option (!)
ex: !Folder/File*
Hit Enter
Search results gives you desired result
In VS Code...
The search query will be prefilled with the path under "files to include".