Eclipse Oxygen Java editor Shortcuts helps in editing source code more comfortably. Frequently used default shortcuts are listed below.
Description
|
Shortcut
|
Delete Line
|
CTRL + D
|
Copy Line
|
CTRL + ALT + Down Arrow
|
Add method level, class level, member level Comments
|
SHIFT + ALT + J
|
Format Java Source code
|
CTRL + SHIFT + F
|
Make line commented
|
CTRL + /
|
Make multiple lines [block] commented
|
CTRL + SHIFT + /
|
Search selected similar word within the source document
|
CTRL + K
|
Select line from beginning to end
|
SHIFT + End key
|
Select line from end to beginning
|
SHIFT + Home key
|
Select Word by word in same line
|
CTRL + SHIFT + Right Arrow
|
Move line above
|
ALT + Up Arrow
|
Move line below
|
ALT + Down Arrow
|
Shortcuts can be customized and new shortcuts can be created through Keys Page in Preferences wizard.
- Window menu > Go To Preferences
- Type Keys as the "filter text"
- Please find the image below for reference.
Example:
Add new Shortcut for cut whole line command.
- In Keys page type filter text -- Cut line
- Type your convenient key. In my case I added SHIFT + X
- Finally, Click Apply and Click Apply and Close.
- That's it. Now Test your new Shortcut.
Happy Coding :)
No comments:
Post a Comment