Ask coding questions

← Back to all posts
Shortcut for Collapsing and Expanding Code Blocks
StefanGisi (5)


After starting a new job recently after I had to start using Visual Studio. I don't know anything aboujt Visual Studio because I always use's IDE.

One great feature I noticed was the CTRL+M+O and CTRL+L+O keyboard shortcuts that allow you to collapse and expand all code blocks.

It would be great if had a feature like this.



ash15khng (704)

Press Ctrl+Shift+P and there's a big menu of cool shortcuts you can use!

Geocube101 (606)

They do
Pressing "F1" will reveal some shortcuts for
Scroll down to fold for shortcuts on collapsing code