Eclipse 3.4 - Essential hotkeys

This is the third part of my Eclipse configuration series. At work we have a new guy who never has used Eclipse before, so he's a little lost when it comes to navigating the code base. I tried to write down a list of hotkeys that would make his life easier, but there are so many of them! Here is a list of my favorite hotkeys grouped by the area of use. I really tried to keep the list short but some shortcuts you just can't live without.

General

  • ctrl+space - The most important hotkey of them all, auto complete.
  • ctrl+m - Maximize the current view.
  • ctrl+3 - Open preferences or any other view.

Navigation

  • f3 - Open declaration.
  • ctrl+o - Quick outline of the class files, great for navigating within a class quickly.
  • ctrl+t - Open the type hierarchy.
  • ctrl+shift+g - Get a list of all methods that calls the current method.
  • ctrl+k - Next occurrence of the currently selected text.
  • ctrl+. - Goto the next error or warning, use ',' for the previous.
  • ctrl+shift+r - Open a resource.
  • ctrl+shift+t - Open a type.
  • ctrl+q - Goto last edit position.

Refactor and source generation

  • ctrl+1 - Quick fix! A lot of great functionality.
  • ctrl+2, L - Extract selection to local variable.
  • ctrl+alt+r - Rename the current variable, method or class
  • ctrl+shift+o - Add imports for unknown classes and remove unused.
  • ctrl+shift+m - Try to import the class that the cursor stands on.
  • alt+shift+s, r - Generate setters/getters from fields.

Previous posts

2 comments:

longge said...

http://uggloveshoes.vox.com/
http://uggshoe.vox.com/
http://uggloveshoes.webs.com/apps/blog/
http://warmugg.webs.com/apps/blog/
http://uggloveshoes.weebly.com/
http://ugggg.weebly.com/
http://uggloveshoes.wordpress.com/
http://uggloveboots.wordpress.com/
http://pulse.yahoo.com/_AYKQMFYOZ26I3OTTDFMBU4QBDQ/blog/
http://pulse.yahoo.com/_RDDQ2DFI4RDOV4Y2L47DLPM6C4/blog/

123 said...

http://remind.com.br/projetos/criar-blog-gratis/replicahandbags69/
http://remind.com.br/projetos/criar-blog-gratis/ureplicawatches/
http://remind.com.br/projetos/criar-blog-gratis/ureplicawatches1987/
http://replbags.livejournal.com/
http://replcawatche.livejournal.com/
http://repldbags.livejournal.com/
http://replica69bags.insanejournal.com/
http://replicabag242.livejournal.com/
http://replicacheap.21classes.com/weblogCategory/1951uut1lrg4t
http://replicacheap.ayubd.com/