Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable code folding in Visual C++ 2010

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.

like image 261
yep me Avatar asked Jul 25 '11 15:07

yep me


People also ask

How do you collapse sections in Visual Studio code?

Ctrl + Shift + [ on Windows and Linux. ⌥ + ⌘ + [ on macOS.

How do I collapse a line in Visual Studio?

(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.

How do you collapse rows in Visual Studio code?

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.


2 Answers

Go to Edit → Outlining → Stop Outlining in the Menu Bar.

like image 165
Will Bradley Avatar answered Feb 04 '23 11:02

Will Bradley


Visual Studio 2019 Update

In VS2019, there is an option to permanently disable outlining for C/C++ files.

Disable for Every File You Open

Main Menu → Tools → Options... → Text Editor → C/C++ → View → Enable Outlining → set to False

Set Enable Outlining option to False

Disable for Current File

Main Menu → Edit → Outlining → Stop Outlining

Disable outlining for current file

like image 21
Doug Richardson Avatar answered Feb 04 '23 11:02

Doug Richardson