8

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
}

2 Answers 2

25

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.

2
  • 2
    That's great. Don't forget to upvote and accept the answer.
    – Wosi
    Oct 27, 2015 at 7:16
  • 3
    @Wosi Change from back-slash to forward-slash as that would be the correct setting
    – Manatax
    Jul 10, 2017 at 2:44
1

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
}

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.