You are on page 1of 2

Eclipse Shortcuts

Platform: Windows/English Manage Files and Projects Ctrl+N Ctrl+Alt+n Alt+f, then . Ctrl+Shift+r Alt+Enter Ctrl+s Ctrl+Shift+s Ctrl+w Ctrl+Shift+w F5 Create new project using the Wizard Create new project, file, class, etc. Open project, file, etc. Open Ressource (file, folder or project) Show and access file properties Save current file Save all files Close current file Close all files Refresh content of selected element with local file system Select Text Shift+Arrow Right/ Arrow Left Ctrl+Shift+Arrow Right/Arrow Left Expand selection by one character to the left / to the right Expand selection to next / previous word

Shift+Arrow Down/ Expand selection by one line down / one line up Arrow Up Shift+End/Home Ctrl+a Alt+Shift+Arrow Up Alt+Shift+Arrow Left/Arrow Right Alt+Shift+Arrow Down Edit Text Ctrl+c/Ctrl+x/Ctrl+v Cut, copy and paste Ctrl+z Ctrl+y Ctrl+d Alt+Arrow Up/Arro w Down Ctrl+Alt+Arrow Up / Ctrl+Alt+Arrow Down / Ctrl+Delete Ctrl+Backspace Shift+Enter Shift+Ctrl+Enter Insert Shift+Ctrl+y Shift+Ctrl+x Undo last action Redo last (undone) action Delete Line Move current line or selection up or down Duplicate current line or selection up or down Expand selection to end / to beginning of line Select all Expand selection to current element (e.g. current one-line expression or content within brackets) Expand selection to next / previous element Reduce previously expanded selection by one step

Editor Window Focus/ cursor must be in Editor Window for these to work. F12 Ctrl+Page Down/Ct rl+Page Up Ctrl+m Ctrl+e Ctrl+F6/Ctrl+Shift+ F6 Alt+Arrow Left/Alt +Arrow Right Alt+Ctrl+F10 Ctrl+F10, then n Ctrl+Shift+q Jump to Editor Window Switch to next editor / switch to previous editor Maximize or un-maximize current Editor Window (also works for other Windows) Show list of open Editors. Use arrow keys and enter to switch Show list of open Editors. Similar to ctrl+e but switches immediately upon release of ctrl Go to previous / go to next Editor Window Open Editor Window Option menu Show view menu (features available on left vertical bar: breakpoints, bookmarks, line numbers, ?) Show or hide line numbers Show or hide the diff column on the left (indicates changes since last save)

Delete next word Delete previous word Enter line below current line Enter line above current line Switch between insert and overwrite mode Change selection to all lower case Change selection to all upper case

Navigate in Editor Home/End Ctrl+Home/End Jump to beginning / jump to end of indention. Press home twice to jump to beginning of line Jump to beginning / jump to end of source

Search and Replace Ctrl+f Ctrl+k/Ctrl+Shift+k Ctrl+h Ctrl+j/Ctrl+Shift+j Open find and replace dialog Find previous / find next occurrence of search term (close find window first) Search Workspace (Java Search, Task Search, and File Search) Incremental search forward / backwards. Type search term after pressing ctrl+j, there is now search window Open a resource search dialog to find any class

Ctrl+Arrow Right/A Jump one word to the left / one word to the right rrow Left Ctrl+Shift+Arrow Down/Arrow Up Ctrl+l Ctrl+q Ctrl+./Ctrl+, Ctrl+Shift+p Ctrl+[[]+[[]/Ctrl+on numeric keyboard Ctrl+[[]/[[]/Ctrl+* on numeric keyboard Ctrl+Arrow Down/ Ctrl+Arrow Up Jump to previous / jump to next method Jump to Line Number. To hide/show line numbers, press ctrl+F10 and select 'Show Line Numbers' Jump to last location edited Jump to next / jump to previous compiler syntax warning or error With a bracket selected: jump to the matching closing or opening bracket Collapse / Expand current method or class

Ctrl + Shift + o

Indentions and Comments Tab/Shift+Tab Ctrl+i Ctrl+shift+f Ctrl+/ Ctrl+Shift+/ Ctrl+Shift+ Alt+Shift+j Increase / decrease indent of selected text Correct indention of selected text or of current line Autoformat all code in Editor using code formatter Comment / uncomment line or selection ( adds '//' ) Add Block Comment around selection ( adds '/... */' ) Remove Block Comment Add Element Comment ( adds '/** ... */')

Collapse / Expand all methods or classes

Scroll Editor without changing cursor position

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

Eclipse Shortcuts
Platform: Windows/English Editing Source Code Ctrl+Space Ctrl+1 Alt+/ Opens Content Assist (e.g. show available methods or field names) Open Quick Fix and Quick Assist Propose word completion (after typing at least one letter). Repeatedly press alt+/ until reaching correct name Deactivate or activate Smart Insert Mode (automatic indention, automatic brackets, etc.)

Ctrl+Shift+Insert

Code Information Ctrl+o F2 F3 F4 Ctrl+t Ctrl+Shift+t Ctrl+Alt+h Ctrl+u Ctrl+move over method Refactoring Alt+Shift+r Alt+Shift+v Ctrl+Shift+c Alt+Shift+m Alt+Shift+l Alt+Shift+i Rename selected element and all references Move selected element to other class or file (With complete method or class selected) Change method signature (with method name selected) Extract selection to method Extract local variable: Create and assigns a variable from a selected expression Inline selected local variables, methods, or constants if possible (replaces variable with its declarations/ assignment and puts it directly into the statements) Show code outline / structure Open class, method, or variable information (tooltip text) Open Declaration: Jump to Declaration of selected class, method, or parameter Open Type Hierarchy window for selected item Show / open Quick Type Hierarchy for selected item Open Type in Hierarchy Open Call Hierarchy Find occurrences of expression in current file Open Declaration or Implementation

Run and Debug Ctrl+F11 F11 F5 F6 F7 F8 The Rest Ctrl+F7/Ctrl+Shift+ F7 Ctrl+F8/Ctrl+Shift+ F8 Ctrl+p F1 Switch forward / backward between views (panels). Useful for switching back and forth between Package Explorer and Editor. Switch forward / backward between perspectives Print Open Eclipse Help Save and launch application (run) Debug Step Into function Next step (line by line) Step out Skip to next Breakpoint

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

You might also like