Visual Studio Javascript extensions feature comparison

前端 未结 5 1454
日久生厌
日久生厌 2020-12-13 07:08

I know I\'m not the first one that would like to have #region and brace matching support for Javascript. That\'s why I don\'t want to install one by one and see

5条回答
  •  隐瞒了意图╮
    2020-12-13 07:28

    JScript Editor Extensions is much better than JSEnhancements. It will highlight matching braces, cold-folding the blocks, current word highlighting.

    Although it does not support #region name,

    but you can use javascript curly brackets to enclose your code and place a comment above to know what you are making collapsible.

    //My region
    {
      //lines of code
      //lines of code
      //lines of code
    }
    

    these will collapse and don't appear to affect anything else. javascript just treats them as simple compound statement.

    Further, I would also recommend Web Standards Update as it also helped me with intellisense and validation.

提交回复
热议问题