Does anyone know how to disable code folding in Visual C++ 2010?
In the 2008 version I used to disable it by unchecking a certain check box, but this seems to be removed.
I tried to get these How to permanently disable region-folding in Visual Studio 2008 solutions done, but I can't really get rid of the code folding, in particular the tree node graphics on the left and the text region colors that don't fit my dark color scheme.
Ctrl + Shift + [ on Windows and Linux. ⌥ + ⌘ + [ on macOS.
(Ctrl+M, Ctrl+H) - Collapses a selected block of code that would not normally be available for outlining, for example an if block. To remove the custom region, use Stop Hiding Current (or Ctrl+M, Ctrl+U). Not available in Visual Basic.
VSCode Collapse/expand Similar to that, Ctrl+Shift+] key combination will unfold the collapsed region at the cursor. There are several advanced keyboard shortcut to fold/unfold code blocks in VSCode, although I personally don't use them very often. Toggle Fold (Ctrl+K Ctrl+L) folds or unfolds the region at the cursor.
Go to Edit → Outlining → Stop Outlining in the Menu Bar.
In VS2019, there is an option to permanently disable outlining for C/C++ files.
Main Menu → Tools → Options... → Text Editor → C/C++ → View → Enable Outlining → set to False
Main Menu → Edit → Outlining → Stop Outlining
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