Skip to content

Netbeans 6.5.1, Line-spacing


I was using NetBeans in Ubuntu 9.04 when i started a new project and I realized that the line-spacing is so fucking bigger. To fix this you have to do this:

Edit the file "org-netbeans-modules-editor-settings-CustomPreferences.xml"

$ pico org-netbeans-modules-editor-settings-CustomPreferences.xml

This file will be in:


If the file and the directory exists just add the following lines:

<entry javaType="java.lang.Float" name="line-height-correction"

If don't you have to create the directory "Preferences":
$ mkdir Preferences
(In /home/user/.netbeans/6.5/config/Editors)

$ cd Preferences

And create the file:

$ pico org-netbeans-modules-editor-settings-CustomPreferences.xml

Add the following lines:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE editor-preferences PUBLIC "-//NetBeans//DTD Editor Preferences 1.0//EN" "">
<entry javaType="java.lang.String" name="code-template-expand-key" xml:space="preserve">
<entry javaType="java.lang.Float" name="line-height-correction" xml:space="preserve">

Save, restart netbeans and enjoy it. 😉

Good Night,

Portuguese Version


Published inAprendendoLinuxSoftware Livre

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.