1. Manage Files and Projects
| ctrl+n | Create new project using the Wizard |
| ctrl+alt+n | Create nnew project, file, class, etc. |
| alt+f, then . | Open project, file, etc. |
| ctrl+shift+r | Open Ressource (file, folder or project) |
| alt+enter | Show and access file properties |
| ctrl+s | Save current file |
| ctrl+shift+s | Save all files |
| ctrl+w | Close current file |
| ctrl+shift+w | Close all files |
| f5 | Refresh content of selected element with local file system |
2. Editor Window
| Focus/ cursor must be in Editor Window for these to work. | |
| f12 | Jump to Editor Window |
| ctrl+page down / ctrl+page up | Switch to next editor / switch to previous editor |
| ctrl+m | Maximize or un-maximize current Editor Window (also works for other Windows) |
| ctrl+e | Show list of open Editors. Use arrow keys and enter to switch |
| ctrl+f6 / ctrl+shift+f6 | Show list of open Editors. Similar to ctrl+e but switches immediately upon release of ctrl |
| alt+arrow left / alt+arrow right | Go to previous / go to next Editor Window |
| alt+- | Open Editor Window Option menu |
| ctrl+f10 | Show view menu (features available on left vertical bar: breakpoints, bookmarks, line numbers, …) |
| ctrl+f10, then n | Show or hide line numbers |
| ctrl+shift+q | Show or hide the diff column on the left (indicates changes since last save) |
3. Navigate in Editor
| home / end | Jump to beginning / jump to end of indention. Press home twice to jump to beginning of line |
| ctrl+home / end | Jump to beginning / jump to end of source |
| ctrl+arrow right / arrow left | Jump one word to the left / one word to the right |
| ctrl+shift+arrow down / arrow up | Jump to previous / jump to next method |
| ctrl+l | Jump to Line Number. To hide/show line numbers, press ctrl+f10 and select 'Show Line Numbers' |
| ctrl+q | Jump to last location edited |
| ctrl+. / ctrl+, | Jump to next / jump to previous compiler syntax warning or error |
| ctrl+shift+p | With a bracket selected: jump to the matching closing or opening bracket |
| ctrl++ / ctrl+- on numeric keyboard | Collapse / Expand current method or class |
| ctrl+/ / ctrl+* on numeric keyboard | Collapse / Expand all methods or classes |
| ctrl+arrow down / ctrl+arrow up | Scroll Editor without changing cursor position |
4. Select Text
| shift+arrow right / arrow left | Expand selection by one character to the left / to the right |
| ctrl+shift+arrow right / arrow left | Expand selection to next / previous word |
| shift+arrow down / arrow up | Expand selection by one line down / one line up |
| shift+end / home | Expand selection to end / to beginning of line |
| ctrl+a | Select all |
| alt+shift+arrow up | Expand selection to current element (e.g. current one-line expression or content within brackets) |
| alt+shift+arrow left / arrow right | Expand selection to next / previous element |
| alt+shift+arrow down | Reduce previously expanded selection by one step |
5. Edit Text
| ctrl+c / ctrl+x / ctrl+v | Cut, copy and paste |
| ctrl+z | Undo last action |
| ctrl+y | Redo last (undone) action |
| ctrl+d | Delete Line |
| alt+arrow up / arrow down | Move current line or selection up or down |
| ctrl+delete | Delete next word |
| ctrl+backspace | Delete previous word |
| shift+enter | Enter line below current line |
| shift+ctrl+enter | Enter line above current line |
| insert | Switch between insert and overwrite mode |
| shift+ctrl+y | Change selection to all lower case |
| shift+ctrl+x | Change selection to all upper case |
6. Search and Replace
| ctrl+f | Open find and replace dialog |
| ctrl+k / ctrl+shift+k | Find previous / find next occurrence of search term (close find window first) |
| ctrl+h | Search Workspace (Java Search, Task Search, and File Search) |
| ctrl+j / ctrl+shift+j | Incremental search forward / backwards. Type search term after pressing ctrl+j, there is now search window |
7. Indentions and Comments
| tab / shift+tab | Increase / decrease indent of selected text |
| ctrl+i | Correct indention of selected text or of current line |
| ctrl+f | Autoformat all code in Editor using code formatter |
| ctrl+/ | Comment / uncomment line or selection ( adds '//' ) |
| ctrl+shift+/ | Add Block Comment around selection ( adds '/... */' ) |
| ctrl+shift+ | Remove Block Comment |
| alt+shift+j | Add Element Comment ( adds '/** ... */') |
8. Editing Source Code
| ctrl+space | Opens Content Assist (e.g. show available methods or field names) |
| ctrl+1 | Open Quick Fix and Quick Assist |
| alt+/ | Propose word completion (after typing at least one letter). Repeatedly press alt+/ until reaching correct name |
| ctrl+shift+insert | Deactivate or activate Smart Insert Mode (automatic indention, automatic brackets, etc.) |
9. Code Information
| ctrl+o | Show code outline / structure |
| f2 | Open class, method, or variable information (tooltip description) |
| 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 Type Hierarchy for selected item |
| ctrl+shift+t | Open Type in Hierarchy |
| ctrl+alt+h | Open Call Hierarchy |
| ctrl+u | Find occurrences of expression in current file |
| ctrl+move over method | Open Declaration or Implementation |
10. Refactoring
| alt+shift+r | Rename selected element and all references |
| alt+shift+v | Move selected element to other class or file (With complete method or class selected) |
| ctrl+shift+c | Change method signature (with method name selected) |
| alt+shift+m | Extract selection to method |
| alt+shift+l | Extract local variable: Create and assigns a variable from a selected expression |
| alt+shift+i | Inline selected local variables, methods, or constants if possible (replaces variable with its declarations/ assignment and puts it directly into the statements) |
11. 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 |
12. The Rest
| ctrl+f7 / ctrl+shift+f7 | Switch forward / backward between views |
| ctrl+f8 / ctrl+shift+f8 | Switch forward / backward between perspectives |
| ctrl+p | |
| f1 | Show Eclipse Help |
0 comments:
Post a Comment