Manage Files and Projects
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Ctrl + N |
Create [n]ew project using the Wizard |
02 | Ctrl + Alt + N |
Create [n]ew project, file, class, etc. |
03 | Alt + F, then . |
Open project, file, etc. |
04 | Ctrl + Shift + R |
Open [R]esource (file, folder or project) |
05 | Alt + Enter |
Show and access file properties |
06 | Ctrl + S |
[S]ave current file |
07 | Ctrl + Shift + S |
[S]ave all files |
08 | Ctrl + W |
Close current file |
09 | Ctrl + Shift + W |
Close all files |
10 | F5 |
Refresh content of selected element with local file system |
Editor Window
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | F12 |
Jump to Editor Window |
02 | Ctrl + Page Down / Ctrl + Page Up |
Switch to next editor / switch to previous editor |
03 | Ctrl + M |
[M]aximize or un-maximize current Editor Window (also works for other Windows) |
04 | Ctrl + E |
Show list of open Editors. Use [arrow keys] and [enter] to switch |
05 | Ctrl+F6/Ctrl+Shift+F6 |
Show list of open Editors. Similar to [ctrl]+[e] but switches immediately upon release of [ctrl] |
06 | Alt+Arrow Left/Alt+Arrow Right |
Go to previous / go to next Editor Window |
07 | Alt+[-] |
Open Editor Window Option menu |
08 | Ctrl+F10 |
Show view menu (features available on left vertical bar: breakpoints, bookmarks, line numbers, ?) |
09 | Ctrl+F10, then [n] |
Show or hide line [n]umbers |
10 | Ctrl+Shift+Q |
Show or hide the diff column on the left (indicates changes since last save) |
Navigate in Editor
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Home/End |
Jump to beginning / jump to end of indention. Press [home] twice to jump o beginning of line |
02 | Ctrl+Home/End |
Jump to beginning / jump to end of source |
03 | Ctrl+Arrow Right/Arrow Left |
Jump one word to the left / one word to the right |
04 | Ctrl+Shift+Arrow Down/ArrowUp |
Jump to previous / jump to next method |
05 | Ctrl+L |
Jump to [L]ine Number. To hide/show line numbers, press [ctrl]+[F10] and select 'Show Line Numbers' |
06 | Ctrl+Q |
Jump to last location edited |
07 | Ctrl+[.]/Ctrl+[,] |
Jump to next / jump to previous compiler syntax warning or error |
08 | Ctrl+Shift+P |
With a bracket selected: jump to the matching closing or opening bracket |
09 | Ctrl+[[]+[]]/Ctrl+[-] |
Collapse / Expand current method or class |
10 | Ctrl+[[]/[]]/Ctrl+[*] |
Collapse / Expand all methods or classes |
11 | Ctrl+Arrow Down/Ctrl+Arrow Up |
Scroll Editor without changing cursor position |
12 | Alt+Page Up/Alt+Page Down |
Next Sub-Tab / Previous Sub-Tab |
Editing Source Code
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Ctrl+Space |
Opens Content Assist (e.g. show available methods or field names) |
02 | Ctrl+1 |
Open Quick Fix and Quick Assist |
03 | Ctrl+Shift+Insert |
Deactivate or activate Smart Insert Moindention, automatic brackets, etc.) |
Code Information
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Ctrl+O |
Show code [o]utline / structure |
02 | F2 |
Open class, method, or variable information (tooltip text) |
03 | F3 |
Open Declaration: Jump to Declaration of selected class, method, or parameter |
04 | F4 |
Open Type Hierarchy window for selected item |
05 | Ctrl+T |
Show / open Quick [T]ype Hierarchy for selected item |
06 | Ctrl+Shift+T |
Open Type in Hierarchy |
07 | Ctrl+Alt+H |
Open Call [H]ierarchy |
08 | Ctrl+Shift+U |
Find occ[u]rrences of expression in current file |
09 | Ctrl+move over method |
Open Declaration or Implementation |
Refactoring
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Alt+Shift+R |
Rename selected element and all references |
02 | Alt+hift+V |
Move selected element to other class or file (With complete method or class selected) |
03 | Alt+Shift+C |
Change method signature (with method name selected) |
04 | Alt+Shift+M |
Extract selection to method |
05 | Alt+Shift+L |
Extract local variable: Create and assigns a variable from a selected expression |
06 | Alt+Shift+I |
Extract local variable: Create and assigns a variable from a selected expression |
Run and Debug
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Ctrl+F11 |
Save and launch application (run) |
02 | F11 |
Debug |
03 | F5 |
Step Into function |
04 | F6 |
Next step (line by line) |
05 | F7 |
Step out |
06 | F8 |
Skip to next Breakpoint |
The Rest
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Ctrl+F7/Ctrl+Shift+F7 |
Switch forward / backward between views (panels).Useful for switching back and forth between Package Explorer and Editor. |
02 | Ctrl+F8/Ctrl+Shift+F8 |
Switch forward / backward between perspectives |
03 | Ctrl+P |
|
04 | F1 |
Open Eclipse Help |
05 | Shift+F10 |
Show Context Menu [right click with mouse] |
Select Text
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Shift+Arrow Right/Arrow Left |
Expand selection by one character to the left / to the right |
02 | Ctrl+Shift+Arrow Right/Arrow Left |
Expand selection to next / previous word |
03 | Shift+Arrow Down/Arrow Up |
Expand selection by one line down / one line up |
04 | Shift+End/Home |
Expand selection to end / to beginning of line |
05 | Ctrl+A |
Select all |
06 | Alt+Shift+Arrow Up |
Expand selection to current element (e.g. currentone-line expression or content within brackets) |
07 | Alt+Shift+Arrow Left/Arrow Right |
Expand selection to next / previous element |
08 | Alt+Shift+Arrow Down |
Reduce previously expanded selection by one step |
Edit Text
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Ctrl+C/Ctrl+X/Ctrl+V |
Cut, copy and paste |
02 | Ctrl+Z |
Undo last action |
03 | Ctrl+Y |
Redo last (undone) action |
04 | Ctrl+D |
[D]elete Line |
05 | Alt+Arrow Up/Arrow Down |
Move current line or selection up or down |
06 | Ctrl+Alt+Arrow Up/Ctrl+Alt+Arrow Down/ |
Duplicate current line or selection up or down |
07 | Ctrl+Delete |
Delete next word |
08 | Ctrl+Backspace |
Delete previous word |
09 | Shift+Enter |
Enter line below current line |
10 | Shift+Ctrl+Enter |
Enter line above current line |
11 | Insert |
Switch between insert and overwrite mode |
12 | Shift+Ctrl+Y |
Change selection to all lower case |
13 | Shift+Ctrl+X |
Change selection to all upper case |
Search and Replace
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Ctrl+F |
Open [f]ind and replace dialog |
02 | Ctrl+K/Ctrl+Shift+K |
Find previous / find next o(close find window first) |
03 | Ctrl+H |
Search Workspace (Java Search, Task Search, and File Search) |
04 | Ctrl+J/Ctrl+Shift+J |
Incremental search forward / backwards. Type search term after pressing [ctrl]+[j], there is now search window |
05 | Ctrl+Shift+O |
Open a resource search dialog to find any class |
Indentions and Comments
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Tab/Shift+Tab |
Increase / decrease indent of selected text |
02 | Ctrl+I |
Correct [i]ndention of selected text or of current line |
03 | Ctrl+Shift+F |
Auto[f]ormat all code in Editor using code formatter |
04 | Ctrl+[/] |
Comment / uncomment line or selection ( adds '//' ) |
05 | Ctrl+Shift+[/] |
Add Block Comment around selection ( adds '/... */' ) |
06 | Ctrl+Shift+[\] |
Remove Block Comment |
07 | Alt+Shift+J |
Add Element Comment ( adds '/** ... */') |
Team (SVN Subversive)
Sr.No |
Shortcut Key |
Description |
---|---|---|
01 | Ctrl+Alt+S |
[S]ynchronize with Repository |
02 | Ctrl+Alt+C |
[C]ommit |
03 | Ctrl+Alt+U |
[U]pdate |
04 | Ctrl+Alt+D |
Update to Revision |
05 | Ctrl+Alt+E |
Merge |
06 | Ctrl+Alt+T |
Show Properties |
07 | Ctrl+Alt+I |
Add to svn:[i]gnore |