20

I use VSCode with Unity3D and I wonder is there any way to hide/ignore/filter certain types of files, for example *.meta files in VSCode's tree view? I cant find any suitable option in settings.

3 Answers 3

18

They have added this feature now. Go to File->Preferences->Workspace Settings. That opens or creates the .vscode folder, and underneath it the settings.json file.

Here is a full settings.json file that shows how to exclude the .git folder, the dist folder and the node_modules folder.

// Place your settings in this file to overwrite default and user settings. { "files.exclude": { "**/.git": true, "dist": true, "node_modules": true } } 
Sign up to request clarification or add additional context in comments.

1 Comment

File->Preferences doesn't seem to exist anymore (at least on the MacOS version of VSCode). Simply go to Settings, then search for 'exclude' and you'll see the Files:Exclude setting. You can add patterns there in the GUI rather than having to edit settings.json directly.
10

Not at this time, but you can vote for the feature at the Visual Studio Code User Voice.

1 Comment

I am happy to say that this feature is planned for the next update (post 0.3.0)
1

F1 > Preferences:Open Workspace Settings > [search settings] exclude > Files:Exclude > Add Pattern

In other words, press F1 to open the thingy search thing, to find Preferences:Open Workspace Settings, then in the next search box, search for 'exclude', and add the pattern to exclude in the Files:Exclude section.

For example, to exclude all hidden backup files in Linux -- i.e. files with a tilde '~' on the end, add the pattern **/*~.

You might want to exclude the same pattern from the Search:Exclude and Files:Watcher Exclude sections.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.