【问题标题】:hiding .meta and .cs.meta files on mac in visual studio code在 Visual Studio 代码中隐藏 Mac 上的 .meta 和 .cs.meta 文件
【发布时间】:2015-10-19 07:43:46
【问题描述】:

如何在资源管理器中隐藏这些文件?我尝试在 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
}

【问题讨论】:

    标签: c# json visual-studio-code


    【解决方案1】:

    这应该可行:

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

    如果这不起作用,那么:

    • 确保您使用的是最新版本的 VSCode。

    • 或提交错误here

    【讨论】:

    • 太好了。不要忘记投票并接受答案。
    • @Wosi 从反斜杠更改为正斜杠,因为这将是正确的设置
    【解决方案2】:

    我意识到 OP 正在查看 .cs 文件,但我在 StackOverflow 上的其他地方看不到这些文件的答案,并且相信这对人们有用。特别是对于 Salesforce Apex 项目,您想要的过滤器是这样的:

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

    【讨论】:

      猜你喜欢
      • 2017-04-10
      • 1970-01-01
      • 1970-01-01
      • 2022-11-24
      • 2010-10-02
      • 1970-01-01
      • 1970-01-01
      • 2015-10-13
      • 1970-01-01
      相关资源
      最近更新 更多