0

I read this answer (How do I collapse sections of code in Visual Studio Code for Windows?) and tried changing settings, extensions, etc... I still had to go back to sublime to do basic code folding. I'm on a mac. Visual studio code Version 1.30.2 (1.30.2).

Visual studio code (not working)

enter image description here

Sublime (working)

enter image description here

How do I get those little collapse buttons to show in visual studio code?

idleberg
  • 11,699
  • 7
  • 41
  • 60
Kyle Pennell
  • 5,144
  • 3
  • 45
  • 68

2 Answers2

3

To show code folding controls you need to hover between the line numbers and code. VS Code folding controls

Braca
  • 2,377
  • 16
  • 28
2

For me, it wasn't because of an extension but because of this setting:

"editor.folding": false, 

Commenting it out has solved the problem.

MagTun
  • 5,113
  • 4
  • 53
  • 96