Thursday, May 5, 2011

Never join already wrapped lines

Ever spend a bunch of time carefully formatting your code in Eclipse? Indenting everything just right? And then a few days later you lazily ask Eclipse to format your code and it smushes everything together, completely destroying your careful indentations?

Yeah, it sucks. Fortunately you can prevent it by enabling Java/CodeStyle/Formatter/Line Wrapping/Never join already wrapped lines. Once done Eclipse may even surprise you by indenting code you were too lazy to...

No comments:

Post a Comment