Hide code in the Visual Studio editor

You can easily hide any block of code in Visual Studio using the Hide Selection command. Invoke it from the main EditOutlining menu, Outlining context menu or with a shortcut to the Edit.HideSelection command:

Selected code will be collapsed under a plus sign (you can leave a part of the top line unselected to describe hidden content):

To remove this custom region, use the Stop Hiding Current command from the same menu.

This entry was posted in Visual Studio tips. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s