Skip to content

Instantly share code, notes, and snippets.

@daveray
Created October 7, 2011 03:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daveray/1269390 to your computer and use it in GitHub Desktop.
Save daveray/1269390 to your computer and use it in GitHub Desktop.
daily eclipse shortcuts
These are very Java-centric, but honestly, if you're not doing Java why would you want to use Eclipse? :)
Replace `ctrl` with `cmd` as needed. The translation to Mac is a little arbitrary.
* ctrl-. (period): Jump to next warning or error
* ctrl-1: Show quick-fix menu (great in conjunction with ctrl-.)
* ctrl-3: "smart" navigation. Type name of something (file, view, perspective, etc) to go to it.
* ctrl-D: delete current line
* ctrl-e: switch editor. Also try ctrl-F6
* ctrl-F7: switch between views
* alt-left: back in editing history
* alt-right: forward in editing history
* alt-up: move current line/selection up
* alt-down: move current line/selection down
* alt-shift-up: copy current line/selection up
* alt-shift-down: copy current line/selection down
* alt-shift-L: extract local
* alt-shift-M: extract method
* F3: Jump to definition of symbol under the cursor
* F4: Show type hierarchy for selected type (in editor, or any otherview). Nice for finding implementations of interfaces or sub-classes
* ctrl-shift-B: toggle breakpoint
* F11: run last launch
* F5: step-in
* F6: step-over
* F7: step-out
* F8: continue
* ctrl+K : search for next instance of selection (incremental search)
* alt+shift+S : show context menu with "override methods", "getter/setter generation", etc
* alt+shift+T : show refactoring context menu
* alt+shift+R : rename selection or symbol under cursor
* ctlr+h : search for symbol under cursor (especially nice is the filters like "writes", "reads", etc)
* ctrl+shift+T : show type selection dialog. much faster than digging through the package explorer
* ctrl+shift+R : same as ctrl+shift+T, but for all files (resources) in the workspace
* ctrl-o : show searchable outline of the current file. with this I can close the stupid outline view and regain some screen real estate.
* ctrl-t : show type hierarchy for current class
... and the stuff for running code here: http://blog.darevay.com/2008/12/running-code-in-eclipse-the-lazy-way/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment