Reputation: 3234
I am using Unity and trying to exclude .meta files from the file explorer sidebar. I navigated to File->Preferences->User Settings (or Workspace settings, doesn't matter), and set the contents of the file to the following:
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"**/.meta": true
}
}
...and saved my changes. Yet, when I click the Refresh icon or close/reopen my folder view, I am still seeing all the .meta files showing up in the left pane. Am I doing something wrong here?
Upvotes: 30
Views: 14161
Reputation: 11
Follow this path: C:>Users>UserName>AppData>Roaming>Code>User>settings.json and remove line '**/.project':true
Upvotes: 1
Reputation: 18680
Check this button if you're seeing excluded files in search.
The cog button needs to be highlighted in order for files.exclude
to apply.
Upvotes: 29
Reputation: 51
It's also worth noting that, in the search sidebar, "files to exclude" and "files excluded through settings" behave differently.
In "files to exclude", it's sufficient to write *.meta
, but in "files excluded through settings" (set in the user settings file) you must write **/*.meta
.
Upvotes: 5
Reputation: 3234
My problem was basing my pattern off of the existing ones, which excluded specific file names rather than patterns. I simply needed to add an asterisk before the file extension, i.e.
"**/*.meta"
instead of
"**/.meta"
Upvotes: 61