Is there a way to change the editor's line height in Netbeans without resorting to redundant newlines?

link|improve this question
feedback

2 Answers

The file org-netbeans-modules-editor-settings-CustomPreferences.xml can be found in {install_dir}\ide\config\Modules. If it’s not there, change any editor settings in NetBeans IDE, and it’ll create it.

Open this file in your favourite text editor, and add the following code right before the last line (right before the </editor-preferences> tag):

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

Then restart NetBeans.

source

link|improve this answer
For Netbeans 6.9.1 that's not entirely accurate. – Saul Nov 5 '10 at 13:40
Indeed. You answer seems better. – gulbrandr Nov 5 '10 at 14:28
feedback
up vote 1 down vote accepted

Expanding on gulbandr's answer:

For Netbeans 6.8 and above on Windows, change some arbitrary setting under "Tools/Options/Editor" to trigger the creation of a configuration file. It gets created at

%USERPROFILE%\.netbeans\6.8\config\Editors\Preferences\org-netbeans-modules-editor-settings-CustomPreferences.xml

Then add the following lines into the <editor-preferences> element:

<entry javaType="java.lang.Float" name="line-height-correction" xml:space="preserve">
    <value><![CDATA[1.5]]></value>
</entry>
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.