in previous versions of Visual Studio, you could collapse the html blocks, but that appears to be missing in VS2012. Any ideas on how to enable that feature again?
The #Region directive enables you to collapse and hide sections of code in Visual Basic files. The #Region directive lets you specify a block of code that you can expand or collapse when using the Visual Studio code editor. The ability to hide code selectively makes your files more manageable and easier to read.
CTRL + M + O will collapse all.
Ctrl + Shift + [ on Windows and Linux. ⌥ + ⌘ + [ on macOS.
I was having this issue too and it was driving me nuts. Turns out that, somehow, I turned off "Automatic outlining" which meant that I did see the plus/minus signs and the shortcut Ctrl + M + M didn't work either.
After I turned on Automatic Outlining in Edit > Outlining > Start Automatic Outlining everything went back to normal.
NOTE: On some ocassions, for this solution to work, you also need to close and reopen the document before clicking on Start Automatic Outlining. In fact, sometimes that option doesn't appear in the menu if you don't do so.
It's still there. The issue is that sometimes it takes a while for the parser to visually enable collapsing.
Try Ctrl + M + M and you'll see the effect
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With