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

Zooba wrote Mar 16 at 5:11 PM

If you're watching this issue and not the release pages, we just released 2.2 Beta which includes this feature! Announcement - Download

TimeArrow wrote Mar 16 at 5:52 PM

@Zooba Thanks very much! I am indeed watching this issue and the release page. Our organization IT only allows installation of final build rather than alpha/betas. Any comments on the ETA of the beautiful 2.2? And of course thank you for listening to our voice.

Zooba wrote Mar 16 at 8:03 PM

We're going to be supporting VS 2015 with 2.2, so we won't be doing a final release until they have. Hopefully, we'll be releasing simultaneously or very shortly afterwards, but we can't release any earlier (since they could potentially make changes that would break us...)