RSS
 

Eclipse Tip: Keyboard shortcuts for manipulating lines

10 Mar

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

Related posts:

  1. E71 Keyboard Shortcuts
  2. Eclipse Tip: Show key assist
  3. Eclipse Tip: Incremental Find or Find as You Type
  4. Eclipse Tip: Java Editor Breadcrumb Navigation Bar
  5. Eclipse Tip: Structured Selections

 
4 Comments

Posted in Eclipse, Java

 
  1. David Waller

    March 10, 2005 at 1:06 PM

    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. Drex

    March 11, 2005 at 3:28 AM

     
  3. Vasanth

    March 11, 2005 at 4:15 AM

    Drex,

    Thanks for the links.

     
  4. marko

    March 11, 2005 at 9:02 AM

    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