By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,354 Members | 907 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,354 IT Pros & Developers. It's quick & easy.

Expand and Collapse

P: n/a
My codebehind file contains a lot of sub's.
Is there a fast way to expand and collapse them in the
VisualStudio? It's really exhausting to collapse them all
after opening the project in the morning!
Thanks
Jenny
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Jenny,

In the codebehind file

In the Outlining submenu of the Edit menu and in the
context menu, the following commands are available for
all languages:

1.Hide Selection - Hides the currently selected text.
Text must be selected to execute this command. Shortcut
keys are CTRL+M and then CTRL+H. (This command is
available in Visual C# .NET only when auto-outlining is
turned off or Stop Outlining is selected.)
2.Toggle Outlining Expansion - Reverses the current
hidden or expanded state of the innermost outlining
section in which the cursor lies when you are in a nested
collapsed section. Shortcut keys are CTRL+M and then
CTRL+M.
3.Toggle All Outlining - Sets all procedures to the same
hidden or expanded state. If some regions are expanded
and some hidden, then the hidden regions are expanded.
Shortcut keys are CTRL+M and then CTRL+L.
4.Stop Outlining - Removes all outlining information for
the entire document. All procedures are visible and the
symbols removed, but the underlying code is undisturbed.
Shortcut keys are CTRL+M and then CTRL+P.
5.Stop Hiding Current - Removes the outlining information
for the currently selected user-defined region. Shortcut
keys are CTRL+M and then CTRL+U. (This command is
available in Visual C# .NET only when auto-outlining is
turned off or Stop Outlining is selected.)
6.Collapse to Definitions - Collapses the members of all
types so that all of the members belonging to a type are
clearly seen. Identical to the Collapse Block command
except that the environment automatically runs through
all of the code in the document, creates regions in each
of your procedures, and then hides them. Shortcut keys
are CTRL+M and then CTRL+O.
HTH
Ravikanth[MVP]

Ravikanth[MVP]

-----Original Message-----
My codebehind file contains a lot of sub's.
Is there a fast way to expand and collapse them in the
VisualStudio? It's really exhausting to collapse them all
after opening the project in the morning!
Thanks
Jenny
.

Nov 17 '05 #2

P: n/a
Does vb have the #region / #endregion directive?

bill

"Jenny" <j.******@x-mail.net> wrote in message
news:8b****************************@phx.gbl...
My codebehind file contains a lot of sub's.
Is there a fast way to expand and collapse them in the
VisualStudio? It's really exhausting to collapse them all
after opening the project in the morning!
Thanks
Jenny

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.