JSDoc Comment Folding In VSCode

前端 未结 2 647
悲哀的现实
悲哀的现实 2021-02-07 18:04

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:10

    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!

提交回复
热议问题