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).
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.
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 .
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.
Open visual studio code settings (cmd
+ ,
on Mac or Ctrl
+,
), search for the setting:
Search: Use Ignore Files
and untick the checkbox
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With