In fact if you save 3 seconds to take an action by using hot keys instead of using mouse and you take 100 such actions you save 300 seconds!
By the way I am using Eclipse for PHP Developers Version: 3.0.2
Some hot keys are INCREDIBLY useful but not many developers are aware of them, such as by default you can use 'Control + Shift + >' to find the matching HTML tag. Do you have any idea how useful it is? In a complex HTML document using hot keys could save you tens of seconds!
A Table of the MOST Useful Hot Keys in Eclipse that Every Developer MUST Learn!
Action | Hot Key | Note |
Content assist | Alt+/ | Default hot key is Alt+/. I recommend that you change it to Control+Space in Windows -> Preferences -> General -> Keys |
Find matching parenthesis | Control+Shift+P | For example if you place cursor at { of some 'if' statement and press this hot key, cursor will jump to } of that 'if' statement. Press the hot key again to jump back. |
Find matching HTML tag | Control+Shift+> | For example if you place cursor at <body> in an HTML document and press this hot key, cursor will jump to </body>. Press the hot key again to jump back. I found it to work with only HTML tags. |
Delete a line | Control+D | |
Go to last edit location | Control+Q | Control+Q takes you back to the place where you last made a change. Use this hot key in conjunction with Alt+Left Arrow as you will find these hot keys complement each other! |
Where was I? | Alt+Left Arrow | Workbench editors keep a navigation history. If you open a second editor while you're editing, you can press Alt+Left Arrow to go back to the last editor. This makes working with several editors a whole lot easier. Use 'Alt+Right Arrow' to go forward. Use this hot key in conjunction with Control+Q as you will find these hot keys complement each other! |
Search for a file | Control+Shift+R | Control+Shift+R brings up a dialog that allows you to quickly locate and open any file in the workspace. This hot key works on every type of file in your workspace! |
Move a line up | Alt+Up arrow | |
Move a line down | Alt+Down arrow | |
Copy current line up | Control+Alt+Up arrow | |
Copy current line down | Control+Alt+Down arrow |
You won't be sorry.
A Table of Useful Shortcut Keys in Eclipse
Action | Hot Key | Note |
Delete previous word | Control+Backspace | |
Delete next word | Control+Delete | |
Delete to end of line | Control+Shift+Delete | |
Quickly switch editor | Control+E | You can quickly switch editors using the Control+E which opens a list of all open editors. The list supports type-ahead to find the editor as well as allows you to close editors using a popup menu or the Delete key. |
Learning all of these hot keys will guarantee to save you time and spare you frustrations while working in Eclipse!
Questions? Let me know!