隐藏的区域在Visual Studio [英] Hiding the regions in Visual Studio

查看:404
本文介绍了隐藏的区域在Visual Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道VS code折叠问题是一个古老的板栗,但我一直没能找到这个在我走过浏览所有其他讨论:

I know VS code folding issues are an old chestnut, but I haven't been able to find this in all the other discussions I have browsed through:

我们有一个团队C#的家伙,有些爱地区和其他恨他们,我们似乎没有太多的中间立场的工作。

We have a team of C# guys, some love regions and others hate them and we don't seem to have much middle ground to work with.

是否有插件或附加在该VS只是隐藏的区域?因此,那些希望他们会看到他们为正常,但安装的加载项和查看的.cs人档案的区域正好是不存在,因为如果他们不存在。

Is there a plug- or add-in for VS that will just 'hide' the regions? So that those that want them will see them as normal, but the people that install the add-in and view a .cs file the regions just aren't there, as if they don't exist.

我可以看到移动code左右时,它可能会造成一定的方法,或在境外错误的区域被问题,这可能是一个问题,但是这可能是一个折中的团队很高兴与...

I can see this might be an issue when moving code around that it might cause issues of certain methods being in or outside of the wrong region, but that might be a tradeoff the team is happy with...

推荐答案

我讨厌的区域(我的球队喜欢他们),并惊讶地发现,没有人写的扩展,使他们更好。最后我写了一个自己所谓的我恨#Regions

I hate regions (my team loves them) and was surprised to find that nobody has written an extension to make them better. I finally wrote one myself called I Hate #Regions:

使#regions吸以下(免费):

<一个href=\"http://visualstudiogallery.msdn.microsoft.com/0ca60d35-1e02-43b7-bf59-ac7deb9afbca\">http://visualstudiogallery.msdn.microsoft.com/0ca60d35-1e02-43b7-bf59-ac7deb9afbca


  • 自动扩展区的文件被打开时

  • 被倒塌
  • 可选prevent从区域(但依然能够折叠其他code)

  • 提供的#地区/#END地区线路更小,更轻的背景,使他们不太明显(也是一个选项)

  • 作品在C#和VB

这篇关于隐藏的区域在Visual Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆