Ikool’s Blogbed

Top 20 Eclipse Shortcuts

Here are the top 20 Eclipse shortcuts that I used most of the time during java development, and some of them can even be used for other languanges such as PHP

  1. Ctrl + Shift + F : format code. If nothing is selected then whole document will be formatted. Otherwise, only the selection of your code will be formatted. It’s not quite smart when talking about formatting the selected code
  2. CTRL + L : Go to line. Wow, man, you need to remember this one, especially when trouble shooting
  3. Alt + left and Alt + Right: Navigation
    Ctrl + Left and Ctrl + Right can be used to navigate through where you visit. For example, you navigate to the definition or declaration of a method, and even go deeper to other functions using F3. Now you want to go back one level, you can do so using Ctrl+left. If let’s say you come back a few levels and now you want to go back further again, you can do that using Ctrl+Right combination. It’s very quick way to navigating through your code
  4. Ctrl + Shift + R : Open Resource, very helpful on finding the class/interface
  5. Ctrl + Shift + O : Organize imports
  6. Ctrl + T : Open Type Hierarchy
  7. Ctrl + Shift + F4 : Close all Opened documents
  8. Ctrl + O : Open declarations
  9. Ctrl + E : Open Editor, let you quickly switch among the opened documents
  10. Ctrl + / : Line Comment. It also allows to comment your selection using ‘/’
  11. Ctrl + Shift + / : Comment your selection using /* and */ instead of ‘/’
  12. Alt + Shift + R : Rename
  13. Alt + Shift + L : extract to Local Variable
  14. Alt + Shift + M : extract to Method
  15. F3 : Open Declaration
  16. Ctrl + S : Save your document
  17. F5 : Reload your project. It’s useful after you modify or sync your code
  18. Tab or Shift Tab : Indent your line or selection
  19. Ctrl + Space : Code assistence
  20. Ctrl + Shift + L : list all the shortcuts

The list keeps going on. It will significantly increases your productivity 🙂

Advertisements

June 23, 2008 - Posted by | IDE Tools | , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: