VSCode的Javadoc生成快捷方式,类似IntelliJ。

huangapple go评论59阅读模式
英文:

VScode javadoc generation shortcut like Intellij

问题

Is there a way to generate the javadoc for a method by typing "/**" in VSCode just like in Intellij? Intellij automatically writes annotations like parameter and return value.

英文:

Is there a way to generate the javadoc for a method by typing "/**" in VSCode just like in Intellij?
Intellij automatically writes annotations like parameter and return value.

答案1

得分: 1

是的,存在并且应该对您有效(如果不起作用,那么您可能遇到了一个错误)。

这是请求添加此功能的问题单:
https://github.com/redhat-developer/vscode-java/issues/228

这是实施该功能的拉取请求:
https://github.com/eclipse/eclipse.jdt.ls/pull/744

这是一个报告停止工作并已解决为已修复的错误报告:
https://github.com/redhat-developer/vscode-java/issues/811

如果它对您不起作用,请阅读这些线程,看看您的问题是否与Intellicode扩展有关。如果不是,请使用我发送的第三个链接,提供详细信息以重现您的问题和日志。

如评论中所澄清的,问题在于提问者安装了两个Java语言服务器扩展。卸载其中一个(georgewfraser.vscode-javac)后,他们的问题得到解决。

英文:

Yes there is, and it should be working for you (if it's not, then you're likely encountering a bug).

Here's the feature request issue ticket that requested that this feature be added:
https://github.com/redhat-developer/vscode-java/issues/228.

Here's the Pull Request that implemented it:
https://github.com/eclipse/eclipse.jdt.ls/pull/744.

Here's a bug report reporting that it stopped working that got resolved as fixed:
https://github.com/redhat-developer/vscode-java/issues/811.

If it's not working for you, read through those threads and see if your issue is related to the Intellicode extension. If not, revive that third link I sent with details to reproduce your issue and logs.

As clarified in the comments, the issue was that the asker had two Java language server extensions installed. After uninstalling one of them (georgewfraser.vscode-javac), their issue was resolved.

huangapple
  • 本文由 发表于 2023年2月24日 15:23:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/75553627.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定