This post will try to configure/learn Oracle JDeveloper short keys to behave like Eclipse IDE.
Most of the java developers are familiar with Eclipse IDE and worked on it for a long time. Since the Eclipse IDE is very handy for use, we used to remember almost all the shortcuts. But when we start working on Oracle JDeveloper, things are not going smooth if we dont configure the short keys properly. So this post will help you to configure/learn Oracle JDeveloper short keys.
2. Custom Short Keys
If you want to custom short keys, you have to add that in the Code Template under Tools > Preference.
Suppose if we need a short key called syso for inserting System.out.println(); the we can add it in Code Template like below
The $end$ is indicating where the cursor will be placed for you to write after inserting the System.out.println();. So,System.out.println(); will be inserted and you will start to write after System.out.println(
3. Last and final tweaking
By default JDeveloper's code highlighter will be disabled, so when you click on any variable it won't highlight the same name variables. For enabling this feature just go to Search > Enable Auto Code Highlight
Hope This Helps!!
Most of the java developers are familiar with Eclipse IDE and worked on it for a long time. Since the Eclipse IDE is very handy for use, we used to remember almost all the shortcuts. But when we start working on Oracle JDeveloper, things are not going smooth if we dont configure the short keys properly. So this post will help you to configure/learn Oracle JDeveloper short keys.
1. Basic Short Keys
Short Keys | JDeveloper | Eclipse | |
1. | Code Formatting | Ctrl + Alt + L | Ctrl + Shift + F |
2. | Go to line | Ctrl + G | CTRL + L |
3. | Navigation | Alt + left and Alt + Right | Alt + left and Alt + Right |
4. | Open Resource | Ctrl + Alt + - | Ctrl + Shift + R |
5. | Organize imports | Alt + Enter (One at a time) and Ctrl + Alt + O (All at once) | Ctrl + Shift + O |
6. | Open Type Hierarchy | Menu Navigate -> View Type Hierarchy | Ctrl + T |
7. | Close all Opened documents | Ctrl + Shift + F4 | Ctrl + Shift + F4 |
8. | Open declarations | Ctrl + Shift + ` | Ctrl + O |
9. | Open Editor | Don’t know | Ctrl + E |
10. | Line Comment | Ctrl + / Note Ctrl + / without selection will move cursor to the next line |
Ctrl + / |
11. | Comment and Uncomment your selection using /* and */ | Alt+Shift+Z and Select Surround With /** **/ | Ctrl + Shift + / and Ctrl + Shift + \ |
12. | Rename | Ctrl + Alt + R | Alt + Shift + R |
13. | extract to Local Variable | Ctrl + Alt V or Ctrl + Alt + F | Alt + Shift + L |
14. | extract to Method | Ctrl + Alt + X | Alt + Shift + M |
15. | Open Declaration | Context menu -> Go to Declaration | F3 |
16. | Save your document | Ctrl + S | Ctrl + S |
17. | Reload your project | Press the refresh button | F5 |
18. | Indent your line or selection | Tab or Shift Tab | Tab or Shift Tab |
19. | Code assistence | Ctrl + Space | Ctrl + Space |
20. | list all the shortcuts | Don’t know | Ctrl + Shift + L |
2. Custom Short Keys
If you want to custom short keys, you have to add that in the Code Template under Tools > Preference.
Suppose if we need a short key called syso for inserting System.out.println(); the we can add it in Code Template like below
The $end$ is indicating where the cursor will be placed for you to write after inserting the System.out.println();. So,System.out.println(); will be inserted and you will start to write after System.out.println(
3. Last and final tweaking
By default JDeveloper's code highlighter will be disabled, so when you click on any variable it won't highlight the same name variables. For enabling this feature just go to Search > Enable Auto Code Highlight
Hope This Helps!!