JSDoc Comment Folding In VSCode

前端 未结 2 1386
野趣味
野趣味 2021-02-07 18:27

Is there a way to fold JSDoc-style comment blocks in VSCode v1.25 for JavaScript files? I get normal code collapse offered, but comment blocks seem excluded. Is there a keyboard

2条回答
  •  误落风尘
    2021-02-07 19:11

    I had the same issue, and fixed it by doing this:

    Go to File -> Preferences -> Settings and change the following entry from auto to indentation

    "editor.foldingStrategy": "indentation"
    

    Now JSDoc comments are folding as expected, hope this works for you as well!

提交回复
热议问题