Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 326
TheCuBeMan Avatar asked May 02 '19 09:05

TheCuBeMan


People also ask

How do I see ignored files in Visual Studio?

yes it is possible: go to Preferences > Settings, and edit the User Settings file to comment out excluded files in the "files. exclude" section - like node_modules etc.

How do I see what files are ignored in Git?

Git Ignoring Files and Folders Checking if a file is ignored From Git 1.7. 6 onwards you can also use git status --ignored in order to see ignored files. You can find more info on this in the official documentation or in Finding files ignored by .

How do I add ignore files to Git in Visual Studio code?

You right-click a file and select add to . gitignore from the pop-up menu. You can't add folders but just the individual files.


1 Answers

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

like image 70
gbalduzzi Avatar answered Oct 21 '22 14:10

gbalduzzi