Eclipse
Short Cuts To work fast..
We
all know few short cuts of eclipse but these shortcuts might help you
more.......Let’s
start with deleting a row
1.
CTRL + D
Delete row. Try it! You no more need to grab the mouse and select the line, no more Home, Shift + End, Delete. Quick and clean.
Delete row. Try it! You no more need to grab the mouse and select the line, no more Home, Shift + End, Delete. Quick and clean.
2.
ALT + Up/Down Arrow
Move the row (or the entire selection) up or down. Very useful when rearranging code. You can even select more rows and move them all. Notice, that it will be always correctly indented.
Move the row (or the entire selection) up or down. Very useful when rearranging code. You can even select more rows and move them all. Notice, that it will be always correctly indented.
3.
ALT + Left/Right Arrow
Move to the last location you edited. Imagine you just created a class sample1, and now you are working on a class sample2. Now, if you need to look at the sample1 class, just press Alt+Left Arrow. Alt+Right Arrow brings you back to sample2.
Move to the last location you edited. Imagine you just created a class sample1, and now you are working on a class sample2. Now, if you need to look at the sample1 class, just press Alt+Left Arrow. Alt+Right Arrow brings you back to sample2.
4.
CTRL+SHIFT+O
Organize imports. What happens when you first use a class you have not yet imported? You will see an error. But when you press this magical combination, all your missing classes will be imported, and the unused imports will vanish.
Organize imports. What happens when you first use a class you have not yet imported? You will see an error. But when you press this magical combination, all your missing classes will be imported, and the unused imports will vanish.
5.
CTRL+1
This short cut might help you a lot. It activates the quick fix. Imagine you create a class, which implements some interface. You will get an error, because the inherited methods are not yet implemented. While you are on line where the error occurs, press this combination to activate the quick fix. Now, select the "Add unimplemented methods" option. You can use the quick fix at every error you ever receive.
This short cut might help you a lot. It activates the quick fix. Imagine you create a class, which implements some interface. You will get an error, because the inherited methods are not yet implemented. While you are on line where the error occurs, press this combination to activate the quick fix. Now, select the "Add unimplemented methods" option. You can use the quick fix at every error you ever receive.
6.
CTRL+SHIFT+T
Open Type. Imagine, that you need to have a look at the Foo class. But, where is the Foo class? Is it in the Boo project and in the foo.bar package? Or somewhere else? With this shortcut, you don't need to know. Just press it, type Foo and you are in.
Open Type. Imagine, that you need to have a look at the Foo class. But, where is the Foo class? Is it in the Boo project and in the foo.bar package? Or somewhere else? With this shortcut, you don't need to know. Just press it, type Foo and you are in.
7.
CTRL+E
Shows you a list of all open editors.
Shows you a list of all open editors.
8.
CTRL+F6
Use to move between open editors.
Use to move between open editors.
9.
CTRL+F7
Move between views. When in editor, press Ctrl+F7 to switch to the Package
Explorer, or hold Ctrl and press F7 multiple times to switch to other views.
10.
CTRL+F8
Move between perspectives. The
same as previous.
11.
CTRL + F11
Runs the application. What gets launched depends on your settings. It will either launch the last launched class (my preffered way) or it will launch currently selected resource (the default way). If you want to change its behavior read the previous post.
Runs the application. What gets launched depends on your settings. It will either launch the last launched class (my preffered way) or it will launch currently selected resource (the default way). If you want to change its behavior read the previous post.
12.
CTL + N
Open new type wizard.
Open new type wizard.
13.
CTRL + M
Maximize or umaximize current tab.
Maximize or umaximize current tab.
14.
CTRL + I
Corrects indentation.
Corrects indentation.
15.
CTRL + SHIFT + F
Formats code.
Formats code.
16.
CTRL + J
Incremental search. Similar to the search in firefox. It shows you results as you type. Don't be surprised, if you hit this combination, nothing happens - at the first glance. Just start typing and eclipse will move your cursor to the first ocurence.
Incremental search. Similar to the search in firefox. It shows you results as you type. Don't be surprised, if you hit this combination, nothing happens - at the first glance. Just start typing and eclipse will move your cursor to the first ocurence.
17.
CTRL + SHIFT + L
Shows you a list of your currently defined shortcut keys.
Shows you a list of your currently defined shortcut keys.
No comments:
Post a Comment