'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.



Solution 1:[1]

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.

Solution 2:[2]

This VSCode extension does exactly what you're asking for.

https://marketplace.visualstudio.com/items?itemName=rwu823.open-folder

Solution 3:[3]

Ctrl + Shift + E

and start typing. You'll see your search on the top right corner of file explorer.

By default it does not filter by result but your focus will jumps to the first one. From there you can Enter to open it.

If you want to show only results containing the string of search : click on filter icon next to your search (state will be remembered).

Echap

to exit/remove search or

Ctrl + Shift + E

again to switch back focus to last place you were typing.

Solution 4:[4]

You can simply select a folder on the explorer and tape some filter keywords. enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Eugen Konkov
Solution 2 Janac Meena
Solution 3 Semicorpus
Solution 4 gxmad