Collapsible (conditional, loop) blocks in Visual Studio 2012 (C#) [duplicate]

六眼飞鱼酱① 提交于 2019-12-11 07:53:28

问题


There doesn't seem to be a solution to this so far, other than using region directives, which add on unnecessary work.

There are plugins, but all are for 2010 or below.

It would be great if you could collapse/expand conditional and loop blocks.

Anybody know of a newer plugin for VS 2012 that does this?

This function already exists for the C++ text editor, but it doesn't carry over when you're in the C# editor.


回答1:


you could always define a #region inside your loop



来源:https://stackoverflow.com/questions/18388280/collapsible-conditional-loop-blocks-in-visual-studio-2012-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!