Command | Description |
Alt + Ctrl + UP/DOWN arrow | Select the content(where cursor is positioned) and copy it to the previous or next line |
Alt + Up / Down arrow | Select the content(where cursor is positioned) and move it to the previous or next line |
Alt + Shift + C | Change method signature |
Alt + Shift + D | Invokes debug as box |
Alt + Shift + L | Extract to local variable |
Alt + Shift + M | Extract to method |
Alt + Shift + R | Rename |
Alt + Shift + X | Invokes run as |
Alt + Shift + W | Synchronize the current file with the Navigator or Package explorer etc., |
Class Name + Ctrl + space | Adds default constructor |
Ctrl + F3 (or) Ctrl + O | Open declarations |
Ctrl + . | To go directly to the next warning or error in your current source file |
Ctrl + / | Line comment |
Ctrl + 1 | Quick fix |
Ctrl + 2 + R | Select the variable and press Ctrl + 2 + R. Renaming the selected variable will change all the occurrences |
Ctrl + E | Open Editor and you can select any open file |
Ctrl + F4 | Close one source window. |
Ctrl + H | Search & Replace |
Ctrl + i | Good indentation of selected code |
Ctrl + L | Go to line number |
Ctrl + PgUp / PgDn | Changes focus to previous/next editor respectively.. |
Ctrl + Q | Control goes to last edit. |
Ctrl + Shift + Arrow-up (or) Ctrl + Shift + Arrow-down | Jumping from method to method: |
Ctrl + Shift + F4 | Close all opened editors |
Ctrl + Shift + F4 | Close all source windows |
Ctrl + Shift + L | Displays all short cuts |
Ctrl + Shift + M | Add import class |
Ctrl + Shift + O | Organize imports |
Ctrl + Shift + R | Opens a named resource in the project |
Ctrl + Shift + T | Open type |
Ctrl + Shift + X | To upper case |
Ctrl + Shift + Y | To lower case |
Rename compilation unit | Sometimes if your java file name does not match with class name, you can click the error marker in the left margin on the line with the class name and then double-click ‘Rename compilation unit etc.’ |
Syso | Type syso and press enter. It prints system.out.println automatically |
Leave a comment