Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

I have a love/hate relationship with my IDE – the sequel

41 sec read

After I finished my blog post I contacted one of the NetBeans developers (Geertjan Wielenga) who was very helpful. So I did some more investigations…

This is the spacing problem which annoyed me so much – the code is perfect in Eclipse but indenting is all wrong in NetBeans.

As you can see, the text in Eclipse (right of image) is beautifully formatted, while in NetBeans (on the left) the text has a ragged margin. So NetBeans sucks, and just to prove it I opened it in a couple of text editors – they agreed with NetBeans!

So I switched mode in Eclipse to see if I could understand the issue and here we can see the problem.

It seems that I have a mix of spaces and tabs in my code and the lines with odd indents have additional tabs (ignored by Eclipse but shown by NetBeans). And right clicking my mouse in NetBeans and choosing format fixes it, So in a sense I need to ‘apologise’ to NetBeans and think more carefully about my code next time…

Have you ever made any assumptions with your IDE and found out you were mistaken?

IDRsolutions develop a Java PDF Viewer and SDK, an Adobe forms to HTML5 forms converter, a PDF to HTML5 converter and a Java ImageIO replacement. On the blog our team post anything interesting they learn about.

Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

Leave a Reply

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

IDRsolutions Ltd 2019. All rights reserved.