Forum Discussion

Philip_Baird's avatar
Philip_Baird
Community Expert
11 years ago
Solved

Group code blocks in Visual Studio type regions


Hi, just a quick suggestion/question about the Code Editor, are there plans, or has it been considered, to fold on regions as you can in Visual Studio?


 


e.g.


#region Command Maps


 


// Lots of code


 


#endregion


 


I know regions are frowned upon in some circles (partial Classes anyone) but I am currently writing Scipt Extensions, where all the code HAS to live in one Script Unit, and being able to group and fold on regions would make editing code a lot easier


 


I know we have Hide Selection but this is a bit unwieldly when large blocks of code need to selected for folding.


 


Anyway, just a suggestion, I know I would find it handy, anyone else?


 


Regards,


Phil Baird


  • Hi Phil,


     


    I've found the corresponding suggestion in our DB and added your vote to it.


    Thanks.