How can I search in one subfolder folder of my workspace only?
CTRL+SHIFT+F searches in the whole workspace, and since this is large I get way too many hits in unrelated folders and files.
I want to support any folder in the tree being capable of being a workspace folder (which means it can have its own .vscode folder, though it's not necessary - the same today you can add another workspace folder without having to put a .vscode folder in it - though it'll cause it to be shown at the top level).
How can I search in one subfolder folder of my workspace only? CTRL + SHIFT + F searches in the whole workspace, and since this is large I get way too many hits in unrelated folders and files. Show activity on this post. Right-click the folder in the Explorer and choose "Find in folder..."
VS Code features like global search work across all folders and group the search results by folder. When you have a multi-root workspace open, you can choose to search in a single root folder by using the ./ syntax in the files to include box.
Unless you already have opened a .code-workspace file, the first time you add a second folder to a workspace, VS Code will automatically create an "untitled" workspace. In the background, VS Code automatically maintains a untitled.code-workspace file for you that contains all of the folders and workspace settings from your current session.
Two options:
This will give you a slightly changed search bar:
The key combo is ALT+SHIFT+F
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With