現在官方提供的NetBeans將換行的選項取消,在網路上找到了解決的辦法,趕緊做個紀錄一下。
You need to edit the netbeans.conf file inside the /etc folder of the NetBeans installation directory, for example, C:\Program Files\NetBeans 6.9.1\etc. Then add the line below inside the double quote of the netbeans_default_options variable:
-J-Dorg.netbeans.editor.linewrap=true
The whole line should now be
netbeans_default_options=”-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Dorg.netbeans.editor.linewrap=true”
After that, restart the NetBeans IDE and the line wrap feature should enabled by default and set to “Anywhere”. To verify, go to Tools -> Options -> Editor -> Format. You should see Line Wrap option enabled at the bottom .
沒有留言:
張貼留言