Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase line height in NetBeans 7?

Tags:

css

netbeans

I found a hack how to increase it in 6.9, but it does not work in NetBeans 7. Is there any way to increase the space between the lines in ver. 7? Please help, googled it too - no info about it :/

like image 458
Hop hop Avatar asked Sep 28 '11 09:09

Hop hop


People also ask

How do you show lines in Netbeans?

By default, line numbers are switched off in the Source Editor to save space and reduce visual clutter. If you need the line numbers, you can turn them on by choosing View | Show Line Numbers. You can also right-click in the left margin of the Source Editor and choose Show Line Numbers.

What is the line in Netbeans?

The red line simply marks 80 characters wide (by default) and is a visual guide to break long expressions over multiple lines. You can adjust the placement of the red line in (Netbeans 6.7): Tools > Options > Editor > Formatting. On the left you'll see Right Margin, with a default value of 80.

How do I remove a vertical line in Netbeans?

If you just want to hide the line, you can change its color: Tools > Options > Fonts and Colors > Highlighting > Category > Text Limit Line.


2 Answers

Here you go,

  1. Find org-netbeans-modules-editor-settings-CustomPreferences.xml in ~/.netbeans/x.x/config/Editors/Preferences where x.x is your netbeans version.
  2. Add this xml markup just above </editor-preferences> or anywhere if you know what you doing.
<entry javaType="java.lang.Float" name="line-height-correction" xml:space="preserve">  
    <value><![CDATA[1.4]]></value>  
</entry>
like image 65
pengemizt Avatar answered Oct 05 '22 11:10

pengemizt


In Apache Netbeans 14,

I was installed it via .sh file

I figure out how to change/add editor custom preferences as well open

/home/username/.netbeans/14/config/Editors/Preferences/

and open

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

then add a new entry

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

Have a nice edit.

like image 1
Mohammed Omer Avatar answered Oct 05 '22 12:10

Mohammed Omer