You are on page 1of 2

Eclipse Shortcuts

Platform: Windows/English

Manage Files and Projects Select Text


[Ctrl]+[N] Create [n]ew project using the Wizard [Shift]+[Arrow Expand selection by one character to the left / to the
Right]/[Arrow Left] right
[Ctrl]+[Alt]+[N] Create [n]ew project, file, class, etc.
[Ctrl]+[Shift]+[Arro Expand selection to next / previous word
[Alt]+[F], then [.] Open project, file, etc.
w Right]/[Arrow
[Ctrl]+[Shift]+[R] Open [R]esource (file, folder or project) Left]
[Alt]+[Enter] Show and access file properties [Shift]+[Arrow Expand selection by one line down / one line up
[Ctrl]+[S] [S]ave current file Down]/[Arrow Up]

[Ctrl]+[Shift]+[S] [S]ave all files [Shift]+[End]/[Hom Expand selection to end / to beginning of line
e]
[Ctrl]+[W] Close current file
[Ctrl]+[A] Select [a]ll
[Ctrl]+[Shift]+[W] Close all files
[Alt]+[Shift]+[Arro Expand selection to current element (e.g. current
[F5] Refresh content of selected element with local file w Up] one-line expression or content within brackets)
system
[Alt]+[Shift]+[Arro Expand selection to next / previous element
w Left]/[Arrow
Editor Window Right]
Focus/ cursor must be in Editor Window for these to work. [Alt]+[Shift]+[Arro Reduce previously expanded selection by one step
w Down]
[F12] Jump to Editor Window
[Ctrl]+[Page Switch to next editor / switch to previous editor
Edit Text
Down]/[Ctrl]+[Page
Up] [Ctrl]+[C]/[Ctrl]+[X] Cut, copy and paste
[Ctrl]+[M] [M]aximize or un-maximize current Editor Window /[Ctrl]+[V]
(also works for other Windows) [Ctrl]+[Z] Undo last action
[Ctrl]+[E] Show list of open Editors. Use [arrow keys] and [Ctrl]+[Y] Redo last (undone) action
[enter] to switch
[Ctrl]+[D] [D]elete Line
[Ctrl]+[F6]/[Ctrl]+[S Show list of open Editors. Similar to [ctrl]+[e] but
hift]+[F6] switches immediately upon release of [ctrl] [Alt]+[Arrow Move current line or selection up or down
Up]/[Arrow Down]
[Alt]+[Arrow Go to previous / go to next Editor Window
Left]/[Alt]+[Arrow [Ctrl]+[Alt]+[Arrow Duplicate current line or selection up or down
Right] Up]/[Ctrl]+[Alt]+[Ar
row Down]/
[Alt]+[-] Open Editor Window Option menu
[Ctrl]+[Delete] Delete next word
[Ctrl]+[F10] Show view menu (features available on left vertical
bar: breakpoints, bookmarks, line numbers, ?) [Ctrl]+[Backspace] Delete previous word

[Ctrl]+[F10], then Show or hide line [n]umbers [Shift]+[Enter] Enter line below current line
[n] [Shift]+[Ctrl]+[Ente Enter line above current line
[Ctrl]+[Shift]+[Q] Show or hide the diff column on the left (indicates r]
changes since last save) [Insert] Switch between insert and overwrite mode
[Shift]+[Ctrl]+[Y] Change selection to all lower case
Navigate in Editor
[Shift]+[Ctrl]+[X] Change selection to all upper case
[Home]/[End] Jump to beginning / jump to end of indention. Press
[home] twice to jump to beginning of line
Search and Replace
[Ctrl]+[Home]/[End Jump to beginning / jump to end of source
[Ctrl]+[F] Open [f]ind and replace dialog
]
[Ctrl]+[K]/[Ctrl]+[Sh Find previous / find next occurrence of search term
[Ctrl]+[Arrow Jump one word to the left / one word to the right
ift]+[K] (close find window first)
Right]/[Arrow Left]
[Ctrl]+[H] Search Workspace (Java Search, Task Search, and
[Ctrl]+[Shift]+[Arro Jump to previous / jump to next method
File Search)
w Down]/[Arrow
Up] [Ctrl]+[J]/[Ctrl]+[Shi Incremental search forward / backwards. Type
ft]+[J] search term after pressing [ctrl]+[j], there is now
[Ctrl]+[L] Jump to [L]ine Number. To hide/show line numbers,
search window
press [ctrl]+[F10] and select 'Show Line Numbers'
[Ctrl]+[Shift]+[O] Open a resource search dialog to find any class
[Ctrl]+[Q] Jump to last location edited
[Ctrl]+[.]/[Ctrl]+[,] Jump to next / jump to previous compiler syntax
warning or error Indentions and Comments

[Ctrl]+[Shift]+[P] With a bracket selected: jump to the matching closing [Tab]/[Shift]+[Tab] Increase / decrease indent of selected text
or opening bracket [Ctrl]+[I] Correct [i]ndention of selected text or of current line
[Ctrl]+[[]+[]]/[Ctrl]+ Collapse / Expand current method or class [Ctrl]+[Shift]+[F] Auto[f]ormat all code in Editor using code formatter
[-]
on numeric [Ctrl]+[/] Comment / uncomment line or selection ( adds '//' )
keyboard [Ctrl]+[Shift]+[/] Add Block Comment around selection ( adds '/... */' )
[Ctrl]+[[]/[]]/[Ctrl]+[ Collapse / Expand all methods or classes [Ctrl]+[Shift]+[\] Remove Block Comment
*]
on numeric [Alt]+[Shift]+[J] Add Element Comment ( adds '/** ... */')
keyboard
[Ctrl]+[Arrow Scroll Editor without changing cursor position
Down]/[Ctrl]+[Arro
w Up]
[Alt]+[Page Next Sub-Tab / Previous Sub-Tab
Up]/[Alt]+[Page
Down]

http://www.shortcutworld.com/en/win/Eclipse.pdf
Eclipse Shortcuts
Platform: Windows/English

Editing Source Code Team (SVN Subversive)


[Ctrl]+[Space] Opens Content Assist (e.g. show available methods or [Ctrl]+[Alt]+[S] [S]ynchronize with Repository
field names)
[Ctrl]+[Alt]+[C] [C]ommit
[Ctrl]+[1] Open Quick Fix and Quick Assist
[Ctrl]+[Alt]+[U] [U]pdate
[Alt]+[/] Propose word completion (after typing at least one
[Ctrl]+[Alt]+[D] Update to Revision
letter). Repeatedly press [alt]+[/] until reaching
correct name [Ctrl]+[Alt]+[E] Merge
[Ctrl]+[Shift]+[Inse Deactivate or activate Smart Insert Mode (automatic [Ctrl]+[Alt]+[T] Show Properties
rt] indention, automatic brackets, etc.) [Ctrl]+[Alt]+[I] Add to svn:[i]gnore

Code Information
[Ctrl]+[O] Show code [o]utline / structure
[F2] Open class, method, or variable information (tooltip
text)
[F3] Open Declaration: Jump to Declaration of selected
class, method, or parameter
[F4] Open Type Hierarchy window for selected item
[Ctrl]+[T] Show / open Quick [T]ype Hierarchy for selected item
[Ctrl]+[Shift]+[T] Open Type in Hierarchy
[Ctrl]+[Alt]+[H] Open Call [H]ierarchy
[Ctrl]+[Shift]+[U] Find occ[u]rrences of expression in current file
[Ctrl]+move over Open Declaration or Implementation
method

Refactoring
[Alt]+[Shift]+[R] [R]ename selected element and all references
[Alt]+[Shift]+[V] Mo[v]e selected element to other class or file (With
complete method or class selected)
[Alt]+[Shift]+[C] [C]hange method signature (with method name
selected)
[Alt]+[Shift]+[M] Extract selection to [m]ethod
[Alt]+[Shift]+[L] Extract [l]ocal variable: Create and assigns a variable
from a selected expression
[Alt]+[Shift]+[I] [I]nline selected local variables, methods, or
constants if possible (replaces variable with its
declarations/ assignment and puts it directly into the
statements)

Run and Debug


[Ctrl]+[F11] Save and launch application (run)
[F11] Debug
[F5] Step Into function
[F6] Next step (line by line)
[F7] Step out
[F8] Skip to next Breakpoint

The Rest
[Ctrl]+[F7]/[Ctrl]+[S Switch forward / backward between views (panels).
hift]+[F7] Useful for switching back and forth between Package
Explorer and Editor.
[Ctrl]+[F8]/[Ctrl]+[S Switch forward / backward between perspectives
hift]+[F8]
[Ctrl]+[P] [P]rint
[F1] Open Eclipse Help
[Shift]+[F10] Show Context Menu [right click with mouse]

http://www.shortcutworld.com/en/win/Eclipse.pdf

You might also like