As mentioned earlier for writing and debugging Java code there are two widely used IDE's
So lets take a look at various shortcuts that come handy while using Eclipse.
- Eclipse
- Netbeans
So lets take a look at various shortcuts that come handy while using Eclipse.
Manage Files and Projects
| Ctrl + N | Create new project using the Wizard |
| Shift + Alt + N | Create new project, file, class, etc |
| Ctrl + Shift + R | Open Ressource (file, folder or project) |
| 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 |
Navigate in Editor
| 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 |
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 + J | Add Element Comment ( adds '/** ... */') |
Editing Source Code
| Ctrl + Space | Opens Content Assist (e.g. show available methods or field names) |
| Ctrl + 1 | Open Quick Fix and Quick Assist |
Code Information
| Ctrl + O | Show code outline / structure |
| F2 | Open class, method, or variable information (tooltip text) |
| F3 | Open Declaration: Jump to Declaration of selected class, method, or parameter |
| Ctrl + T | Show / open Quick Type Hierarchy for selected item |
| Ctrl + move over method | Open Declaration or Implementation |
Refactoring
| Alt + Shift + R | Rename selected element and all references |
Run and Debug
| Ctrl + F11 | Save and launch application (run) |
| F11 | Debug |
| F5 | Step Into function |
| F6 | Next step (line by line) |
| F8 | Skip to next Breakpoint |
| F7 | Step out |

No comments:
Post a Comment