Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
134
rated 0 times [  141] [ 7]  / answers: 1 / hits: 51780  / 7 Years ago, fri, october 13, 2017, 12:00:00

How to add region to collapse and expand code in java script. If any body knows solution, it will be great. thanks in advance.


More From » angularjs

 Answers
9

It depends only on the IDE.



vscode, for example, added support for code regions in september 2017



https://code.visualstudio.com/updates/v1_17#_folding-regions



For javascript:



//#region

code

//#endregion


or



//region

and

//endregion


The same syntax could work also in different IDEs.


[#56237] Tuesday, October 10, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
domeniccolti

Total Points: 276
Total Questions: 98
Total Answers: 93

Location: India
Member since Fri, May 13, 2022
2 Years ago
domeniccolti questions
Mon, Oct 18, 21, 00:00, 3 Years ago
Thu, Oct 14, 21, 00:00, 3 Years ago
Thu, Jul 15, 21, 00:00, 3 Years ago
Sat, Oct 24, 20, 00:00, 4 Years ago
Thu, Sep 3, 20, 00:00, 4 Years ago
;