本文介绍了在NetBeans中包装评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  / * 
*
*这是一条很长的评论。我把它分解成了几行,但是这使得编辑无法进行编辑而无法使用格式。有没有办法让Netbeans自动添加换行符?
*
* /

阅读:这是一条很长的评论。我把它分解成了几行,但是这使得编辑无法进行编辑而无法使用格式。有没有办法让Netbeans自动添加换行符?

解决方案

至今为止,目前的NetBeans(7.3)格式化时,有一些很好的额外选项的评论。 NB:不幸的是,目前只有Java语言可用。



您可以使用上下文菜单启动格式化程序→格式,或者如果您没有更改标准快捷方式, + + 应该这样做。

访问相应的配置:工具→选项 →编辑→格式化; 语言: Java ; 类别:评论





/*
 *
 * This is a long comment. I broke it into lines, but that made it impossible to edit without screwing up the formatting. Is there a way to make Netbeans add line breaks automatically?
 *
 */

Reads: This is a long comment. I broke it into lines, but that made it impossible to edit without screwing up the formatting. Is there a way to make Netbeans add line breaks automatically?

解决方案

As for today, the current NetBeans (7.3) word-wraps comments with some nice available extra options when formatting. NB: Unfortunately, this is currently only available for the Java language.

You can launch the formatter with the context menu→Format, or if you did not change the standard shortcuts, ++ should do.

To access the corresponding configuration: Tools → Options → Editor → Formatting; Language: Java; Category: Comments


这篇关于在NetBeans中包装评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 08:37
查看更多