Leandro
Leandro

Reputation: 249

How to search in files in Visual Studio Code

I am coming from Sublime Text 2, where I can open a workspace (a directory with all the source files). There is an option "find in files" (ctrl+shift+f) that searches for an expression in all the files from that directory and subdirectories. Now, in Visual Studio Code, there is such an option with the same shortcut as Sublime, but it only searches in the files that are opened in a tab, not all actual files in the directory currently opened. Is there a way to do this with Visual Studio Code?

Upvotes: 1

Views: 5695

Answers (1)

Cesar Rios
Cesar Rios

Reputation: 221

"CTRL+SHIFT+F" does only search on open files. What you need to do is open up the explorer "CTRL+SHIFT+E", right click on the folder you're attempting to search under, and select "Find in Folder...".

https://stackoverflow.com/a/43651677/6395820

Upvotes: 1

Related Questions