CSS: 在.css文件中对样式进行分组

将分组后的样式折叠起来

Posted by chanweiyan on October 1, 2020

vscode 将分组后的样式折叠起来

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

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

1
"editor.foldingStrategy": "indentation"

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

https://stackoverflow.com/questions/51413448/jsdoc-comment-folding-in-vscode

效果图

折叠前 折叠后

参考

  • https://stackoverflow.com/questions/51413448/jsdoc-comment-folding-in-vscode