Thursday, January 15, 2009

Useful Eclipse Hotkeys

Moving around
  • Ctrl+J — Incremental Search
  • Ctrl+F6 — Switch between last used files
  • Alt+arrow — keys to move to previous/next used files
  • Ctrl+E - open editor list
  • F3 — Open declaration
  • Ctrl+Alt+H — Open Call Hierarchy
  • Ctrl+K - Next occurrence (Previous occurrence : Ctrl+Shift+K)
  • Ctrl+Shift+G - search in the workspace

Editing
  • Ctrl+1 — Quick Fix: press while cursor is positioned at member variable, parameter, selection, warnings, errors, ...
  • Ctrl+2 - Quick Assistance
  • Alt+Shift+T — Show Refactor Quick Menu
  • Alt+Shift+S - show the Source menu
  • Alt+Shift+R - Rename
  • Alt + Shift + I - Inline
Running and Debug
  • Ctrl + R - Run to the cursor
  • Ctrl + F11 - Run last time execution
  • Alt + Shift + X, T - Running JUnit
Other
  • Ctrl + O - Quick Outline, it is very useful when you maximum the editor and cannot see the view of outline.
  • Ctrl + T - Hierarchy layout
  • Alt+Shift+Up - Expand Selection to enclosing element (Brother: Alt+Shift+Down)
  • Alt+Shift+ Arrow Up - Select the outside element. If the cursor is a word, it will select the whole word, just like double click mouse on a word.
  • Ctrl+Shift+L - List all hot keys
  • Ctrl+M - Maximum/restore the current view

No comments:

Post a Comment