how to implement regions/code collapse in javascript

后端 未结 17 1677
灰色年华
灰色年华 2020-11-28 21:01

How can you implement regions a.k.a. code collapse for JavaScript in Visual Studio?

If there are hundreds of lines in javascript, it\'ll be more understandable using

17条回答
  •  甜味超标
    2020-11-28 21:44

    For VS 2019, this should work without installing anything:

        //#region MyRegion1
    
        foo() {
    
        }
    
        //#endregion
    
        //#region MyRegion2
    
        bar() {
    
        }
    
        //#endregion
    

提交回复
热议问题