Skip to content

Netbeans 6.5.1, Line-spacing

Hello,

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:

/home/user/.netbeans/6.5/config/Editors/Preferences

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

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

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” “http://www.netbeans.org/dtds/EditorPreferences-1_0.dtd”>
<editor-preferences>
<entry javaType=”java.lang.String” name=”code-template-expand-key” xml:space=”preserve”>
<value><![CDATA[TAB]]></value>
</entry>
<entry javaType=”java.lang.Float” name=”line-height-correction” xml:space=”preserve”>
<value><![CDATA[0.75]]></value>
</entry>
</editor-preferences>

Save, restart netbeans and enjoy it. 😉

Good Night,
Matheus

Portuguese Version

References:
http://my.opera.com/Nobita2708/blog/show.dml/2914020
http://www.linux4all.net/how_to_change_line_height_in_netbeans_editor
http://www.cs.wcupa.edu/rkline/netbeans-lin.html
http://www.google.com.br/search?hl=pt-BR&q=line+spacing+ubuntu+netbeans&btnG=Pesquisar&meta=

Published inAprendendoLinuxSoftware Livre

9,772 Comments

  1. Nice post. I used to be checking constantly this blog and I’m inspired! Very useful info particularly the last section 🙂 I deal with such info a lot. I was looking for this particular info for a long time. Thanks and best of luck.

  2. I visited several web pages however the audio quality for audio songs current at this site is in fact wonderful.

  3. whoah this blog is excellent i love reading your articles. Keep up the good work! You understand, a lot of persons are looking around for this info, you could help them greatly.

  4. I for all time emailed this weblog post page to all my friends, as if like to read it next my contacts will too.

  5. http://goldwingmarketing.com/
    O projeto Goldwingmarketing apresenta-se como uma consultora experiente com forte presenca no tecido empresarial portugues, que proporciona um acompanhamento profissional a quem procura resultados, com foco na transparencia e confianca. Saiba mais atraves do link.

  6. We travel to Salamanca in advance of LFA 233, and quite frankly, the odds compilers are apparently overrating home-region backstories rather than the true X’s and O’s.

  7. Thanks on your marvelous posting! I seriously enjoyed reading it, you could be a great author. I will always bookmark your blog and definitely will come back in the future. I want to encourage continue your great work, have a nice holiday weekend!

  8. Coming up this Friday — May 22nd — LFA 233 functions as an intense audition platform for up-and-coming fighters who are, in every sense, one step removed from the spotlight of the UFC.

  9. What’s up, I would like to subscribe for this webpage to
    take hottest updates, therefore where can i do it
    please help.

  10. We are a group of volunteers and opening a new scheme in our community.
    Your website offered us with valuable info to work on. You’ve done a formidable job
    and our entire community will be thankful to you.

  11. Hey there! This post could not be written any better! Reading this post reminds me of my old room mate! He always kept chatting about this. I will forward this page to him. Pretty sure he will have a good read. Thank you for sharing!

  12. Spot on with this write-up, I seriously believe that this amazing site needs a lot more attention. I’ll probably be returning to read through more, thanks for the information!

Leave a Reply

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