Eclipse Luna Cheat Sheet
Eclipse Luna
Eclipse has been a staple among Java developers for many years now, and my favorite all-time IDE (Integrated Development Environment). Shortcuts can make a developer’s life easier and more productive when you are working with any IDE. As you will see, Eclipse comes with a slew of shortcuts that is sure to to please any developer.
You can download the PDF cheatsheet one-pager, but clicking here
File
| Keyboard Shortcut | Description |
|---|---|
| Alt + Shift + N | Creates New Project, File, Class, etc |
| Ctrl + N | Creates New Project via Wizard |
| Ctrl + W | Close current file |
| Ctrl + S | Save current file |
| Ctrl + Shift + S | Save All files |
| F2 | Rename |
| F5 | Refresh content of resource |
| Ctrl + P | |
| Alt + Enter | Show Properties Dialog |
Edit
| Keyboard Shortcut | Description |
|---|---|
| Ctrl + Z | Undo |
| Ctrl + Y | Redo |
| Ctrl + X | Cut |
| Ctrl + C | Copy |
| Ctrl + V | Paste |
| Del | Delete current or selected text |
| Ctrl + A | Select All Text |
| Alt + Shift + Up | Expand selection to enclosing element |
| Alt + Shift + Right | Expand selection to next element |
| Alt + Shift + Left | Expand selection to previous element |
| Alt + Shift + Down | Restore last selection |
| F2 | Show tooltip information |
| Ctrl + Space | Content Assistance |
| Alt + / | Word Completion (after typing at least one letter) |
| Ctrl + 1 | Quick Fix |
Source
| Keyboard Shortcut | Description |
|---|---|
| Ctrl + / | Toggle Comments |
| Ctrl + Shift + / | Add Block Comment |
| Ctrl + Shift + | Remove Block Comment |
| Alt + Shift + J | Generate Element Comment |
| Ctrl + I | Correct Indentation |
| Ctrl + Shift + F | Format all code in editor |
| Ctrl + Shift + M | Add import statements |
| Ctrl + Shift + O | Organize all imports |
Navigate
| Keyboard Shortcut | Description |
|---|---|
| F3 | Open Declaration |
| F4 | Open Type Hierarchy |
| Ctrl + Alt + H | Open Call Hierarchy |
| Shift + F2 | Open Attached Javadoc |
| Ctrl + Shift + T | Open Type |
| Ctrl + Shift + H | Open Type Hierarchy |
| Ctrl + F12 | Open Task |
| Ctrl + F9 | Activate Task |
| Ctrl + Shift + F9 | Deactivate Task |
| Alt + Shift + B | Show in Breadcrumb |
| Ctrl + O | Quick Outline |
| Ctrl + T | Quick Type Hierarchy |
| Ctrl + . | Next Annotation |
| Ctrl + , | Previous Annotation |
| Ctrl + Q | Last Edit Location |
| Ctrl + L | Go to Line |
| Ctrl + Shift + Down | Jump to previous method |
| Ctrl + Shift + Up | Jump to next method |
| Home | Jump to beginning of indentation. Hit Home again to jump to beginning of line |
| Ctrl + Home | Jump to beginning of source |
| Ctrl + End | Jump to end of source |
| Ctrl + Right | Jump one word to the right |
| Ctrl + Left | Jump one word to the left |
Search
| Keyboard Shortcut | Description |
|---|---|
| Ctrl + H | Search |
| Ctrl + Shift + L | Quick Search |
| Ctrl + F | Find/Replace Dialog |
| Ctrl + K | Find Next |
| Ctrl + Shift + K | Find Previous |
| Ctrl + J | Incremental Find Next |
| Ctrl + Shift + J | Incremental Find Previous |
| Ctrl + G | Find Declaration in Workspace |
| Ctrl + Alt + G | Find in Workspace |
| Ctrl + Shift + G | Find Reference in Workspace |
Build/Run/Debug
| Keyboard Shortcut | Description |
|---|---|
| Ctrl + B | Build Entire Project |
| F11 | Debug |
| Ctrl + F11 | Run |
| Ctrl + Shift + B | Toggle Breakpoint |
| F5 | Step Into |
| Ctrl + F5 | Step into selection |
| F6 | Step Over |
| F7 | Step Return |
| F8 | Skip to next breakpoint |
| Ctrl + R | Run to line |
| Shift + F5 | Use step filters |
Window
| Keyboard Shortcut | Description |
|---|---|
| Ctrl + Shift + – | Toggle Split Screen Editor (Horizontal) |
| Ctrl + Shift + { | Toggle Split Screen Editor (Vertical) |
| Alt + – | Show System Menu |
| Ctrl + 3 | Quick Access |
| Ctrl + M | Toggle Active Window |
| F12 | Activate Editor Window |
| Ctrl + F6 | Next Editor (Vertical) |
| Ctrl + Shift + F6 | Previous Editor |
| Ctrl + Shift + E | Switch to Editor |
| Ctrl + F7 | Next View |
| Ctrl + Shift + F7 | Previous View |
| Ctrl + F8 | Next Perspective |
| Ctrl + Shift + F8 | Previous Perspective |
View
| Keyboard Shortcut | Description |
|---|---|
| Alt + Shift + Q , C | Console |
| Alt + Shift + Q , D | Declaration |
| Alt + Shift + Q , L | Error Log |
| Alt + Shift + Q , J | JavaDoc |
| Alt + Shift + Q , O | Outline |
| Alt + Shift + Q , P | Package Explorer |
| Alt + Shift + Q , X | Problems |
| Alt + Shift + Q , S | Search |
| Alt + Shift + Q , K | Task List |
| Alt + Shift + Q , T | Type Hierarchy |
| Alt + Shift + Q , Q | Other Views |
Leave a Reply