Friday, August 6, 2010

Eclipse ShortKeys

1. Ctrl+Shift+F: Shortcut used for formatting the code. The formatting rules provided by default can be changed by navigating to the location Windows Preferences Java Code Style Formatter
2. Ctrl+Shift+O: Organizes the imports, removes the unwanted imports. When you first try to include any class and your editor shows an error in red, just use this key combination to get rid of it. If the Class is available in more than one package all the occurrences re listed
3. Ctrl +O: Lists all the variables and methods available in a particular class.
4. Ctrl+T: Lists all the implementation classes of a particular interface. Example if you open the class List and use this key combination, lists all possible implementations available in the class path
5. Ctrl+Shift+T: Open Type? What is this, don’t be bothered, it just lists all the classes available in its class path, it works as a pattern based search.
6. Ctrl+Shift+G: Key combination is very useful as it lists down the hierarch from where this method is called; this key combination has to be used when the name of the method is selected. If you use this combination selecting the name of the class; lists all the classes where the reference of this class is used.
7. Ctrl+N: Opens a New Wizard, suppose if you want to create a new class, instead of navigating to New Others, use this combination.
9. Ctrl+F8: Moving across the perspectives, say if you are in java perspective and would want to navigate to Debug environment, press and hold the key combination , can be navigated up and down to switch between the perspectives.
10. Ctrl+L: Go to the specified line number in a class.
11. Ctrl+F: Find and replace a word,
12. Ctrl+E: Lists all the classes than are opened and not displayed in the perspective, can say as explorer shows all the folders, this combination lists all the classes available in the hierarchy.
13. Ctrl+M: Maxmizes or Minimizes the current window
14. Ctrl+I: Corrects the inundation, but don’t forget to select the entire code usingCtr l+A before using this key combination
 15. Ctrl+Shift+B: This key combination will be useful for either inserting/removing of a breakpoint, in short toggle breakpoint.
 16. Ctrl+F11: Run your code, using this combination
 17. Alt+Shift+J: Adds the java documentation to a variable, method and Class
18. Ctrl + B: Builds the selected java project
19. Alt+Shift+R: Refractor rename, renames all the occurrences in the project.

No comments:

Post a Comment