JSDoc Comment Folding In VSCode

前端 未结 2 641
悲哀的现实
悲哀的现实 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 18:58

    {
      "key": "ctrl+k ctrl+/",
      "command": "editor.foldAllBlockComments",
      "when": "editorTextFocus"
    }
    

    will fold block comments, like jsdoc. But I don't see a command for specifically unfolding (all or just) )block comments. But you can use:

    {
      "key": "ctrl+shift+]",
      "command": "editor.unfold",
      "when": "editorTextFocus"
    }
    

    o do that when cursor is on that line of folded jsdoc comment.

提交回复
热议问题