Saturday, April 20, 2013

Eclipse: Convert to if-!-return

Yes I use Eclipse and I'm excited for the new feature 'Convert to if-!-return' that is coming with Eclipse 4.3 Kepler. Whoever has read my previous post Coding: Why I hate "single line else" can understand why I'm so happy!

Here the Eclipse description of 'Convert to if-!-return' Quick Assist:
Ever encountered a long if statement that can be safely inverted to an early return, so that you can ignore the code that follows, and make it easier to understand? Now, you can just use a Quick Assist (Ctrl+1) on the if statement to do this refactoring



Related posts:

1 comment: