I have a project with a lot of files and folders. There are no problems with finding files. They can be found with Ctrl-P. But there are many folders in which files with the same name are made. Therefore, it is easier to search for a file by the name of the folder in which it is located. How in VS Code to search for folders in the current open project?
For example, I have the following project structure:
A/ main.js B/ main.js ... Z/ main.js
The file main.js
from the folder P
will be easier to find by the folder name.
VS Code allows you to quickly search over all files in the currently opened folder. Press Ctrl+Shift+F and enter your search term. Search results are grouped into files containing the search term, with an indication of the hits in each file and its location.
The workspace settings file is located under the .vscode folder in your root folder. Note: For a Multi-root Workspace, workspace settings are located inside the workspace configuration file.
On the Visual Studio menu bar, choose File > Open > Folder, and then browse to the code location. On the context (right-click) menu of a folder containing code, choose the Open in Visual Studio command.
While using Ctrl-P, you can type the full path of the file, so if i have two files named bar you can search on Ctrl-P with "foo/bar" or with "qux/bar" Vscode uses fuzzy search (like so many others), so you don't have to actually type the whole thing. There is no way, to my knowledge and research, to find anb be directed to a specific directory.
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