My tree view hides all of the ignored files that are listed in .gitignore
. I cannot find anything in settings.json
to show ignored files in my project. How do I show files ignored because of .gitignore
?
You can use the files.exclude configuration to tell VSCode what to exclude from the file explorer. It does not use the gitignore file for determining what is visible in the explorer. This is not currently possible in VS Code but there is discussion in this github issue about making it possible.
Adding a "problem view filter" setting in the .vscode folder on a project basis would do that. Indicating that x number of problems were hidden due to this setting, might even help to find incorrect items added to the setting.
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.
The Problems View now lists all problems, even in 3rd party code like in node_modules, which is cluttering the actual problems of the opened project. You should be able to ignore certain folders/files while diagnosing/listing problems. This should be possible on a project basis, not as a VSCode setting. (thus in the .vscode/settings.json)
The defaults of VS Code puzzle me, but fortunately there is a way to override them. I spent hours searching for a way to expose these files in the Explorer view, and only found it through experimenting based on what I already had for the search:
"search.useIgnoreFiles": false,
"files.useIgnoreFiles": false,
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