Shortcut Keys
The following section provides shortcut key examples using Microsoft Windows. If you are using Eclipse on a Unix/Linux-based system or Mac OS X, these keys might be slightly different. For example, on the Mac OS X, the shortcut key to invoke the File, New, Other wizard dialog box is COMMAND+N but on Microsoft Windows, it is Ctrl+N. Also, note that the functionality provided by these shortcut keys is readily available from the main menu bar or context menus.
Two shortcut key combinations I have already mentioned earlier and will reemphasize here are Ctrl+spacebar and Ctrl+1. These work almost anywhere and everywhere and provide intelligent, context-specific assistance (automatically declaring variables, for example). Use these as often as you possibly can (in the right context, of course) because they will not only save you enormous typing but also making your coding almost error-free!
The other key combinations I tend to use include the following:
Ctrl+M for minimizing and maximizing editors and views.
Ctrl+N for creating something new using one of the 100 wizards available in Eclipse.
Ctrl+Shift+spacebar provides hints on a method's parameters.
Ctrl+Shift+M to insert a missing import.
Ctrl+K to repeat the last find and Shift+Ctrl+K to find backward.
Ctrl+Shift+X converts the selected text to uppercase and Ctrl+Shift+Y to lowercase.
Ctrl+Shift+F formats the existing file (based on the preferences).
Ctrl+/ comments a single line of code.
Ctrl+F6, Ctrl+F7, and Ctrl+F8 enable me to cycle through editors, views, and perspectives, respectively (Ctrl+Shift+F6, Ctrl+Shift+F7, Ctrl+Shift+F8, go in the opposite direction).
Tab and Shift+Tab indent and unindent blocks of code, respectively.
F3 opens the declaration for selected item.
F5 refreshes a view.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment