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

4 thoughts on “Eclipse Tip: Keyboard shortcuts for manipulating lines

  1. 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. :-)

Comments are closed.