Monday, October 24, 2011

The most useful Eclipse Hot Keys

As you know hot keys may significantly increase you development speed. I believe every developer knows a list of the most used hot keys in his favorite IDE.
Because I usually work with Eclipse I have my own list with this IDE. Here is the list of the most useful commands:
  • Ctrl + Space - content assist
  • Ctrl + Shift + Space - context information
  • Ctrl + Shift + R - open resource
  • Ctrl + Shift + T - open type
  • Ctrl + Shift + G - find references in the workspace
  • Ctrl + H - search
  • Ctrl + L - go to line
  • Ctrl + W - close window
  • Ctrl + Shift + W - close all windows
  • Alt + Left - back history
  • Alt + Right - forward history
  • Ctrl + Shift + divide ('/') - collapse all
  • Ctrl + D - delete line
  • Ctrl + 8 - new editor in the same window, you can have as many as you wish
  • F2 - show tooltip
  • F3 or Ctrl + lmb click - open declaration
  • F4 - open type hierarchy
  • F12 - switch between source and design views
  • Ctrl + Shift + H - open type in hierarchy
  • Ctrl + E and Ctrl + Shift + E - switch to editor
  • Ctrl + Shift + Slash ('/') - add block comment
  • Ctrl + Shift + Backslash('\') - remove block comment
  • Ctrl + 7 or Ctrl + Slash ('/') or Ctrl + Shift + C - add/remove line comment
  • Ctrl + Shift + O - organize imports
  • Ctrl + Shift + F - format
  • Ctrl + Shift + I - inspect (use in debug)
  • Alt + Shift + O - mark occurances
  • Ctrl + O - quick outline
  • Alt + Shift + S - source quick menu