I'm an RIA Developer who owns a motorcycle custom paint shop, who loves to race anything with wheels. I also enjoy woodworking, cooking, fine wines, liqueurs and dark beers. So if nothing else my blog should be eclectic.  

Eclipse IDE Shortcut: Move Code Up/Down

Development , Eclipse Add comments

A while ago I posted about some shortcuts I often use in Eclipse. Well this morning I found a new shortcut that I can't believe I never knew about; and while borderline, I deemed it worthy of it's own post!

ALT + UP-ARROW
ALT + DOWN-ARROW

I tend to be an ordering freak and this little gem of simplicity is way better than cutting and pasting. This short-cut key will move any line your cursor is on or any lines you have selected in the direction you press.

1 response to “Eclipse IDE Shortcut: Move Code Up/Down”

  1. Bradley Moore Says:
    There's another awesome shortcut to go with moving lines up/down.

    Ctrl + Alt + Up/Down

    This duplicates the current line(s) above or below itself. I usually duplicate the line, then move the line where needed with alt + up/down.

Leave a Reply





Powered by Mango Blog. Design and Icons by N.Design Studio