Separate regions of code using Sublime Text 3

0

In Visual Studio there is a feature called Policy #Region , a feature that collects and hides sections of code.

Example

static void Main(string[] args)
        {
            #region MyRegion1 
            //My code Here
            #endregion MyRegion1

            #region MyRegion2
            //My code Here
            #endregion MyRegion2

            #region MyRegion3
            //My code Here
            #endregion MyRegion3
        }

Result

Is there a similar feature for Sublime Text 3?

    
asked by anonymous 24.08.2016 / 16:13

1 answer

0

Stringname, the same feature is available in Sublime Text 3.

The difference in use is that the sublime only identifies blocks of code with # in front if the line that identifies the block (# block) is without indentation.

I tested it here and it worked!

    
24.08.2016 / 16:40