Make Netbeans Pretty

Run the command locate netbeans.conf to find where your netbeans configuration file is. If that didn't work. If you installed netbeans as root, the file can be found the file at /usr/local/netbeans-8.1/etc/netbeans.conf, otherwise the file can be found at $HOME/netbeans-8.x.x/etc/netbeans.conf.

Then replace the line with netbeans_default_options with the following:

netbeans_default_options="
-J-client
-J-Xss2m
-J-Xms32m
-J-XX:PermSize=32m
-J-Dapple.laf.useScreenMenuBar=tr
-J-Dapple.awt.graphics.UseQuartz=true
-J-Dsun.java2d.noddraw=true
-J-Dsun.java2d.dpiaware=true
-J-Dsun.zip.disableMemoryMapping=true
-J-Dsun.awt.disableMixing=true
-J-Dawt.useSystemAAFontSettings=lcd
--laf Windows
-J-Dswing.aatext=true
-J-Dorg.netbeans.editor.aa.extra.hints=false
"

Increase Line Spacing

Use the following script to open the relevant configuration file in your editor. Version could also be 8.0.1 or 8.0.2 etc.

VERSION="8.1"
editor ~/.netbeans/$VERSION/config/Editors/Preferences/org-netbeans-modules-editor-settings-CustomPreferences.xml

Add the following entry, changing 1.4 to whatever line spacing you want.

<entry javaType="java.lang.Float" name="line-height-correction" xml:space="preserve">  
    <value><![CDATA[1.4]]></value>  
</entry>

References

Author

Programster

Stuart is a software developer with a passion for Linux and open source projects.

comments powered by Disqus