Skip to content

Eclipse main shortcuts

WIN APPLE DESCRIPTION
<kbd>Ctrl</kbd> + 3 <kbd>⌘</kbd> + 3 Go to quick access search for available views, actions, wizards, menus and more
<kbd>Alt</kbd> + <kbd>⇧</kbd> + Q Q <kbd>⌥</kbd> + <kbd>⌘</kbd> + Q Q Show all available views and select one or more to open
F2 F2 Show Javadoc for the selected element
F3 or <kbd>Ctrl</kbd> + Left click F3 or <kbd>⌘</kbd> + Left click In a code editor, go to the declaration of the selected symbol
F4 F4 Show selected symbol in the “Type Hierarchy” view
<kbd>Ctrl</kbd> + <kbd>⇧</kbd> + T <kbd>⌘</kbd> + <kbd>⇧</kbd> + T Open dialog to search for a type (class, interface, enum)
<kbd>Ctrl</kbd> + Alt + H ^ + <kbd>⌥</kbd> + H Open selected callable symbol in the “Call Hierarchy” view
<kbd>Ctrl</kbd> + <kbd>⇧</kbd> + G <kbd>⇧</kbd> + <kbd>⌘</kbd> + G Search workspace for all references to the symbol
<kbd>Ctrl</kbd> + <kbd>⇧</kbd> + R <kbd>⌘</kbd> + <kbd>⇧</kbd> + R Open dialog to search resources (e.g. text files) by filename
<kbd>Ctrl</kbd> + F <kbd>⌘</kbd> + F Find/replace in the current file
<kbd>Ctrl</kbd> + H <kbd>⌘</kbd> + H Find/replace in current file, project, or workspace
<kbd>Ctrl</kbd> + L <kbd>⌘</kbd> + L Go to a line number
<kbd>Ctrl</kbd> + . <kbd>⌘</kbd> + . Jump to next occurrence, warning or error
<kbd>Ctrl</kbd> + , <kbd>⇧</kbd> + <kbd>⌘</kbd> + . Jump to previous occurrence, warning or error
<kbd>Ctrl</kbd> + D <kbd>⌘</kbd> + D Delete line at cursor position
<kbd>Alt</kbd> + ↑ or <kbd>Alt</kbd> + ↓ <kbd>⌥</kbd> + ↑ or <kbd>⌥</kbd> + ↓ Move current line one line above or one line below
<kbd>Ctrl</kbd> + Space <kbd>⌘</kbd> + Space Open content assist dialog (based on current context)
Type "main", "if", "for", "while", "do", "syso" + <kbd>Ctrl</kbd> + Space (same as before) + <kbd>⌘</kbd> + Space Autocomplete element
<kbd>Ctrl</kbd> + <kbd>⇧</kbd> + F Format code
<kbd>Alt</kbd> + <kbd>⇧</kbd> + Z <kbd>⌥</kbd> + <kbd>⌘</kbd> + Z Toggle Try Catch and other predefined blocks of code
<kbd>Alt</kbd> + <kbd>⇧</kbd> + A <kbd>⌥</kbd> + <kbd>⌘</kbd> + A Toggle block / column selection in the current text editor
<kbd>Alt</kbd> + <kbd>⇧</kbd> + R <kbd>⌥</kbd> + <kbd>⌘</kbd> + R Rename (variable, field, method, class...)
<kbd>Alt</kbd> + <kbd>⇧</kbd> + S <kbd>⌥</kbd> + <kbd>⌘</kbd> + S Show advanced editing operations for current selection
<kbd>Alt</kbd> + <kbd>⇧</kbd> + T <kbd>⌥</kbd> + <kbd>⌘</kbd> + T Show available refactoring operations for current selection
<kbd>Ctrl</kbd> + 1 <kbd>⌘</kbd> + 1 Show all possible fixes for a problem (on a text element with a problem marker, or in the problem view)
<kbd>Ctrl</kbd> + <kbd>⇧</kbd> + C <kbd>⌘</kbd> + / Add/Remove line comment
<kbd>Ctrl</kbd> + <kbd>⇧</kbd> + / ^ + <kbd>⌘</kbd> + / Add/Remove block line comment