Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hiding .meta and .cs.meta files on mac in visual studio code

How do I hide those files in explorer? I tried using this code in settings.json :

// Place your settings in this file to overwrite default and user settings.
"files.exclude": {
"\*.meta": true,
"**/*.cs.meta": true,
"**/.cs.meta": true,
"**/.cs": true
}
like image 833
Jaroslaw Weber Avatar asked Oct 19 '15 07:10

Jaroslaw Weber


2 Answers

This should work:

"files.exclude": {
  "**/*.meta": true
}

If that doesn't work then:

  • Ensure that you're on the latest version of VSCode.

  • Or file a bug here.

like image 152
Wosi Avatar answered Nov 17 '22 21:11

Wosi


I realize the OP was looking at .cs files, but I don't see an answer for these elsewhere on StackOverflow, and believe this will be useful for people. Specifically for Salesforce Apex projects, the filter you want is this:

"files.exclude": {
  "**/*.*meta.xml": true
}
like image 28
Shane K Avatar answered Nov 17 '22 21:11

Shane K