How to quick search files in whole workspace (Visual Studio Code)
short answer
Ctrl+P is the way for search file names in the current workspace or project.
but
- recently opened files are shown above.
- the quick search found files recently opened and files that are in the workspace or project but are not ignored
- ignored files may be ruled by
.gitignore
if insettings.json
"search.useIgnoreFiles"
istrue
.
That means that sometimes ignored files are found and sometimes not.
the solution to the question
- Change
settings.json
and set"search.useIgnoreFiles": false
. - Use Ctrl+P to search.
refs:
- https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options
- https://daveredfern.com/2017/hide-or-exclude-folders-and-files-from-search-in-visual-studio-code/