Visual Studio Code 中是否有像 DocBlockr 这样的代码注释功能? [英] Are there code commenting features like DocBlockr in Visual Studio Code?

查看:28
本文介绍了Visual Studio Code 中是否有像 DocBlockr 这样的代码注释功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Sublime Text 3、Atom.io 和 Bracket.io 作为以前的编辑器.

I use Sublime Text 3, Atom.io, and Bracket.io as previous editors.

我也非常喜欢适用于 Mac 的全新 Visual Studio Code 编辑器.

I am also really enjoying the new Visual Studio Code Editor for Mac.

有没有类似于 DocBlockr for Sublime 的代码注释功能?这对我来说非常重要,因为我注释了大量代码.

Are there any code commenting features similar to DocBlockr for Sublime? This is quite crucial for me as I comment a hell of a lot of code.

推荐答案

Visual Studio Code Marketplace 现在有一个用于 JavaScript & 的文档块扩展.其他人可能很快就会添加.https://marketplace.visualstudio.com/items?itemName=stevencl.addDocComments

The Visual Studio Code Marketplace now has a doc block extension for JavaScript & others may be added soon. https://marketplace.visualstudio.com/items?itemName=stevencl.addDocComments

以前,它对此有部分支持.正如其他人所提到的,您可以通过键入 /** 然后按 ENTER 来获取它,但前提是您在 JavaScript 文件中.我不相信它适用于任何其他语言.

Formerly, it had partial support for this. As mentioned by others, you could get it by typing /** and then ENTER but only if you are in a JavaScript file. I don't believe it works in any other language.

请求了一些类似的功能:

A few similar features had been requested:

https://web.archive.org/web/20170910095011/https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/9417975-intellisense-comments-need-improved-typedoc-and-j

https://web.archive.org/web/20170910095011/https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7899765-自动格式化和文档

https://web.archive.org/web/20170910095011/https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/8248872-true-jsdoc-support-for-ts-and-js

这篇关于Visual Studio Code 中是否有像 DocBlockr 这样的代码注释功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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