Search code examples
visual-studio-code

vscode - how to get file search (not content) to include (git-) ignored files


Although this is not a direct dev question, but it does relate to a dev tool, which is very related to my development work:

When I search for a file in VSCode (CTRL+P), I see that it doesn't include files and folders that are a part of the .gitignore file.

I can very well see the logic in that, and that's fine, but how can I disable this (default?) behavior? Meaning, I do want this search to include ALL files in the project, regardless to the .gitignore file (or any other ignore file, for that matter).


Solution

  • Open visual studio code settings (cmd+ , on Mac or Ctrl+,), search for the setting:

    Search: Use Ignore Files

    and untick the checkbox

    enter image description here