简体   繁体   English

可以使NetBeans代码格式化程序格式化javadoc注释吗?

[英]Can the NetBeans code formatter be made to format javadoc comments?

The NetBeans 6.1 editor doesn't seem to like to wrap comments, and the code formatter seems to ignore them. NetBeans 6.1编辑器似乎不喜欢包装注释,并且代码格式化程序似乎忽略了它们。 For JavaDoc comments, this behaviour seems inappropriate, as you can end up spending a lot of wasted time manually reflowing paragraphs. 对于JavaDoc注释,此行为似乎是不合适的,因为您最终可能会花费大量的时间手动重排段落。

I was wondering if there's some magic setting to get the builtin code formatter, or the editor to wrap/reflow javadoc comments? 我想知道是否有一些神奇的设置来获取内置代码格式化程序,或者是用于包装/重排javadoc注释的编辑器?

This issue has been raised to the Netbeans development team and will likely be added in a "future" release of Netbeans. 已向Netbeans开发团队提出此问题,并且可能会在NetBeans的“未来”版本中添加。 If you want this feature (or any other feature) to be added to the IDE, go to the issue tracking website and vote for this feature. 如果要将此功能(或任何其他功能)添加到IDE中,请转至问题跟踪网站并对该功能进行投票。

http://www.netbeans.org/issues/show_bug.cgi?id=11553 http://www.netbeans.org/issues/show_bug.cgi?id=11553

Most open-source products use the votes on their issue tracking systems to determine where to allocate resources for the next release. 大多数开源产品都使用其问题跟踪系统上的投票来确定将资源分配给下一个版本的位置。

I'm fairly sure that you can't do this. 我很确定您不能这样做。 Comments are not code and javadoc comments are not exactly plain text either as they're intended to be HTML outputted. 注释不是代码,而Javadoc注释也不是纯文本,因为它们原本是HTML输出的。

Maybe write your own plugin for this? 也许为此编写您自己的插件?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM