how to implement regions/code collapse in javascript

后端 未结 17 1667
灰色年华
灰色年华 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:46

    if you are using Resharper

    fallow the steps in this pic

    then write this in template editor

      //#region $name$
    $END$$SELECTION$
      //#endregion $name$
    

    and name it #region as in this picture

    hope this help you

提交回复
热议问题