【问题标题】:Visual studio setting or plugin to "hide" region directives in the IDE用于在 IDE 中“隐藏”区域指令的 Visual Studio 设置或插件
【发布时间】:2012-02-20 22:32:49
【问题描述】:

在我们的团队中,有些人喜欢和讨厌“#region”指令。我正在寻找一种让双方都开心的方法。我们使用VS2010。

我知道您可以转到工具 > 选项 > 文本编辑器 > C# > 高级 > 取消选中“打开文件时进入大纲模式”,如以下问题所述:

How to permanently disable region-folding in Visual Studio 2008

但是,这不是我想要的,因为它会禁用所有折叠功能并且#region 文本仍会出现在屏幕上。

理想的解决方案是动态隐藏区域指令(就好像它们不在文件中一样)。这应该只是一个 IDE 技巧。

如果不存在指向可用作基线的类似 VS 扩展示例的指针,那就太好了。

【问题讨论】:

    标签: visual-studio visual-studio-2010 regions


    【解决方案1】:

    This guy 编写了一个禁用该区域的 Visual Studio 扩展。

    https://stackoverflow.com/a/6179771

    【讨论】:

      猜你喜欢
      • 2011-12-12
      • 2010-10-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-24
      • 2010-10-06
      • 1970-01-01
      • 2020-04-22
      相关资源
      最近更新 更多