How can I collapse all #regions and methods in c#?

旧城冷巷雨未停 提交于 2019-12-02 17:00:26

Like Steve said, CTRL + M plus CTRL + L for collapsing all regions recursively. This one is a toggle, meaning you can do it again to re-open them.

Do CTRL + M plus CTRL + O to collapse all regions non-recursively.

Source: http://weblogs.asp.net/mrdave/archive/2004/09/17/230732.aspx

Agent_9191

Quickest way will be to collapse to definitions via Ctrl+M, Ctrl+O. That will collapse all code down to the signature lines.

  • Collapsing and Openning recursively: Ctrl+M+L

  • Just Collapsing: Ctrl+M+O

  • Just Openning: Ctrl+M+P

right click -> Outlining -> Collapse To Definitions

CTRL + M, CTRL + L

This will also collapse anything that is collapsible too, such as scopes defined by braces.

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