Yajuvendra Vant
Yajuvendra Vant

Reputation: 1127

How to open/maximize a function or class in Visual Studio using keyboard

We generally minimize or shrink a function or class by clicking

-

symbol on left corner of every function in Visual Studio. I want do with keyboard instead of mouse. How can that be done.

Upvotes: 2

Views: 642

Answers (5)

JeffSahol
JeffSahol

Reputation: 971

It should also be mentioned that you don't have to click on the - itself...anywhere in the vertical bar below will do it. That makes it easy to quickly shrink successive methods since the next method's vertical bar tends to come up under your mouse pointer after you shrink the one above it.

Upvotes: 0

Ta01
Ta01

Reputation: 31630

Ctrl M + Ctrl M does the trick

Upvotes: 0

user1228
user1228

Reputation:

CTRL-M CTRL-M

Alternatively, you can open up Tools -> Options -> Environment -> Keyboard and assign "Edit.ToggleOutliningExpansion" to any keyboard combo you like. alt text

Upvotes: 2

Judicium
Judicium

Reputation: 66

I think you want ctrl-M, O and ctrl-M, L. These keys will close and open all regions in VS.

Upvotes: 1

Dave
Dave

Reputation: 15016

You just hit Ctrl-M, Ctrl-M to toggle outlining.

Upvotes: 0

Related Questions