Eclipse Tip: Keyboard shortcuts for manipulating lines

Talking of keyboard shortcuts here are some for manipulating lines in Eclipse editor.



  • Alt+Arrow Up – Move current line or selected lines up
  • Alt+Arrow Down – Move current line or selected lines down
  • Ctrl+Alt+Arrow Up – Copy current line or selected lines up
  • Ctrl+Alt+Arrow Down – Copy current line or selected lines down
  • Ctrl+Shift+Enter – Insert a new line above the current line
  • Shift+Enter – Insert a new line below the current line
  • Ctrl+D – Delete current line
  • Ctrl+Arrow Up – Scroll a line up
  • Ctrl+Arrow Down – Scroll a line down

Vasanth Dharmaraj is a Java Architect currently working for Western Union living in the Bay Area. He is interested in programming, gadgets, formula one... You can follow him on Twitter.

Posted in Eclipse, Java
4 comments on “Eclipse Tip: Keyboard shortcuts for manipulating lines
  1. David Waller says:

    Ctrl+D At last! I’ve wanted this for ages, and hadn’t spotted that it had quietly slipped in between Eclipse 3.0 and 3.1. Thanks for pointing this out. :-)

  2. Vasanth says:

    Drex,

    Thanks for the links.

  3. marko says:

    David: Ctrl-D was there already in Eclipse 3.0.

    It is not mentioned in the "New editor functions" in http://download.eclipse.org/eclipse/downloads/drops/R-3.0-200406251208/eclipse-news-part2-R3.html , but it was probably realized with them.

    marko

Ads By Google