JSDoc Comment Folding In VSCode

橙三吉。 提交于 2019-12-04 04:54:05
locofierro

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!

{
  "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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!