c# like #region code folding


It would be very helpful if there's c# like #region code folding.
Python comments are started with # symbol, so there would be
no problem with other python editors if #region/#endregion is used.


dinov wrote Nov 4, 2011 at 1:47 AM

Good idea for a feature, if other editors support this we should recognize whatever they do.

kramed wrote May 24, 2012 at 3:37 PM

This would be great. Code folding of for loops, if statements and the other usual suspects would also be fantastic.

Great work, love this extension!

ralmoritz wrote Aug 25, 2014 at 7:07 PM

+1. I would love to see this feature in PyTools

bmcalpine wrote Aug 28, 2014 at 12:18 PM

Folding (outlining) loops, if, and etc... inside a functions and classes. You cannot fold anything inside a function, only the function itself can be collapsed.

TimeArrow wrote Oct 17, 2014 at 5:36 PM

Second on this. It would be great to fold at least loops, if statements, etc.Its actually quite important also, as for multiple nested loops with long indentations, identifying correct loop level is hard,

sriksrid wrote Oct 30, 2014 at 10:49 PM