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:
- E71 Keyboard Shortcuts
- Eclipse Tip: Show key assist
- Eclipse Tip: Incremental Find or Find as You Type
- Eclipse Tip: Java Editor Breadcrumb Navigation Bar
- Eclipse Tip: Structured Selections
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.
Drex
March 11, 2005 at 3:28 AM
Some more short cuts at http://techmatrix.blogspot.com/2005/02/eclipse-shorcuts.html
and the entire list at
http://eclipse-tools.sourceforge.net/shortcuts.html
Vasanth
March 11, 2005 at 4:15 AM
Drex,
Thanks for the links.
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