Net Beans 中的自动换行 [英] Word Wrap in Net Beans

查看:35
本文介绍了Net Beans 中的自动换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Netbeans 很棒,但是没有办法在其中换行(或者希望我还没有找到它).有没有办法做到这一点,如果没有,是否有任何类似的具有此功能的 Java IDE(希望也是免费的).

Netbeans is great but there's no way to wrap text in it (or hopefully I haven't found it yet). Is there any way to do this, and if not, is there any similarly good IDE for Java with this functionality (hopefully free as well).

推荐答案

您可以在 Netbeans 中使用自动换行.

You can use word wrap in Netbeans.

在netbeans.conf中添加以下内容(netbeans_installation_path/etc/netbeans.conf,linux下默认为/etc/netbeans.conf):

Add the following to netbeans.conf (netbeans_installation_path/etc/netbeans.conf, by default /etc/netbeans.conf under linux):

-J-Dorg.netbeans.editor.linewrap=true

到第六行,看起来像这样:

to the sixth line so it looks like this:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dorg.netbeans.editor.linewrap=true"

并重新启动 Netbeans.

and restart Netbeans.

在工具->选项->编辑器->格式中设置换行选项.

Set the Line Wrap option in Tools->Options->Editor->Formating.

在 Netbeans 6.9 和 7 中对我来说很好

Works fine for me in Netbeans 6.9 and 7

这篇关于Net Beans 中的自动换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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