1

I am writing Python code in Visual Studio 2017, and I have some problems with code folding.

Sometimes, (not for all, but consistenly for specific folding points), when I collapse some code it takes also the code below.

For example something like this:

def fun1(): 
   pass

def fun2():
   pass

when folded is like in the image below

enter image description here

I tried to delete spaces, empty lines etc. between the two functions. I tried to close and reopen Visual Studio but the problem remains. How to fix this?

Quantoor
  • 189
  • 1
  • 1
  • 7

0 Answers0