Visual studio 2008 equivalent for javascript

visual studio 2008 allows you to separate C # code in regions is there an equivalent for javascript?

+4
source share
3 answers

Unfortunately, Javascript does not support this. You can do the separation by comments.

/*My Region (Name It)*/ your scripts /*End Region*/ 

Or you can see this topic on how to do it. how to implement regions / code failure in javascript

+2
source

There is a way to do this in VS2008: select the section of code that you want to collapse, then press the chord Ctrl-M+H

I use this quite a bit when editing javascript files, but unfortunately it is not permanent - javascript code will return to its regular self if you close and reopen the file. In the past, I had js files for several weeks in the editor, just so as not to lose all the carefully crafted folding regions.

+4
source

Alternatively, you can collapse sections of custom code in Dreamweaver, it might be worth modifying your JavaScript using instead

0
source

Source: https://habr.com/ru/post/1306104/


All Articles