cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

Folding block of code

Folding block of code and giving it a title is very useful in the world of programming.

As for now, the only option to fold some code lines is Expr() or Function(). And then I need to run that function or expression - time consuming and adds needless line of code.

Please cosider adding some Fold() function which just folds the code.

 

3 Comments
Jeff_Perkinson
Community Manager
Status changed to: Needs Info

The script editor supports custom keyword lists to allow folding beyond Expr() and Function(). Can you explain what more is needed here?

tom_abramov
Level V

Expr() and Function() can do the job but they have their own purpose. 

And we have to create a variable + call/run them after declaration.

I am using Visual Studio and it is called "region" there. It just creates a fold.

#region CreatingABC

codeABC1

codeABC2

#endregion 

 

Screen Shot 05-18-21 at 04.56 PM.JPG

after you fold it, you see just this:

tom_abramov_0-1621346267946.png

 

 

MarcoNeusserCsl
Level II

Great Idea! I need this too!