Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I show ignored files in visual studio code?

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?

like image 601
martiendt Avatar asked Mar 19 '17 19:03

martiendt


People also ask

How to exclude files from VSCode explorer?

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.

Is there a way to view hidden problems in VSCode?

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.

Does VSCode include files and folders that are not part of gitignore?

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.

Is it possible to ignore certain folders/files while diagnosing/listing problems?

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)


1 Answers

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,
like image 146
iconoclast Avatar answered Oct 10 '22 18:10

iconoclast