VSDoc中的JSDoc注释折叠 [英] JSDoc Comment Folding In VSCode

查看:251
本文介绍了VSDoc中的JSDoc注释折叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在VSCode v1.25中折叠JavaScript文件的JSDoc样式注释块?我提供了正常的代码折叠功能,但注释块似乎被排除在外。是否有键盘快捷键即使在没有显示GUI把手的情况下也可以折叠代码?

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 shortcut that would collapse code even without the GUI handlebars showing?

推荐答案

我遇到了同样的问题,并通过执行以下操作解决了该问题:

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"

现在JSDoc注释正在按预期折叠,希望这样也为您工作!

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

这篇关于VSDoc中的JSDoc注释折叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆