Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find folder in VS Code?

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.

like image 961
pank Avatar asked Oct 05 '17 07:10

pank


People also ask

How do I Find a folder in VS Code?

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.

Where are my VS Code files saved?

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.

How do I open a folder in VS Code editor?

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.


1 Answers

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.

like image 83
Lucas Emerick Avatar answered Sep 29 '22 19:09

Lucas Emerick