Eclipse Keyboard Shortcuts

Eclipse keyboard shortcut reference covering 53 bindings for Windows, Mac & Linux. Commonly searched bindings include New, Close, and Close All. 53 of 53 shortcuts are verified against official Eclipse documentation, each with a linked source when available. Search by action name, filter by category, look up what a key combination does, print a cheat sheet, or practice with flashcards.

Official Eclipse documentation

General

ActionDescriptionWindowsMacVerifiedSource
New Create a Java element or a new resource. Configure which elements are shown in the submenu in Window > Perspective > Customize Perspective. In a Java perspective, by default action for creating Ctrl+N Cmd+N Yes Source
Close Close the current editor. If the editor contains unsaved data, a save request dialog will be shown. Ctrl+F4 Cmd+F4 Yes Source
Close All Close all editors. If editor contains unsaved data, a save request dialog will be shown. Ctrl+Shift+F4 Cmd+Shift+F4 Yes Source
Save Save the content of the current editor. Disabled if the editor does not contain unsaved changes. Ctrl+S Cmd+S Yes Source
Save All Save the content of all editors with unsaved changes. Disabled if no editor contains unsaved changes. Ctrl+Shift+S Cmd+Shift+S Yes Source
Print Prints the content of the current editor. Enabled when an editor has the focus. Ctrl+P Cmd+P Yes Source
Properties Opens the property pages of the select elements. Opened on Java projects the Java Build Path page and the Javadoc Location page are available. For JAR archives, configure the JAR's Source Attachment a Alt+Enter Option+Enter Yes Source
Undo Revert the last change in the editor Ctrl+Z Cmd+Z Yes Source
Redo Revert an undone change Ctrl+Y Cmd+Y Yes Source
Cut Copies the currently selected text or element to the clipboard and removes the element. On elements, the remove is not performed before the clipboard is pasted. Ctrl+X Cmd+X Yes Source
Copy Copies the currently selected text or elements to the clipboard Ctrl+C Cmd+C Yes Source
Paste Paste the current content as text to the editor, or as a sibling or child element to the a currently selected element. Ctrl+V Cmd+V Yes Source
Delete Delete the current text or element selection. Delete Delete Yes Source
Select All Select all the editor content.. Ctrl+A Cmd+A Yes Source
Find / Replace Open the Find / Replace dialog. Editor only. Ctrl+F Cmd+F Yes Source
Find Next Finds the next occurrence of the currently selected text. Editor only. Ctrl+K Cmd+K Yes Source
Find Previous Finds the previous occurrence of the currently selected text. Editor only. Ctrl+Shift+K Cmd+Shift+K Yes Source
Incremental Find Next Starts the incremental find mode. After invocation, enter the search text as instructed in the status bar. Editor only. Ctrl+J Cmd+J Yes Source
Incremental Find Previous Starts the incremental find mode. After invocation, enter the search text as instructed in the status bar. Editor only. Ctrl+Shift+J Cmd+Shift+J Yes Source
Add Task Add a user defined task to the current text selection or selected element. Alt+Enter Option+Enter Yes Source
Expand Selection to Enclosing Element: Selects the enclosing expression, block, method in the code. This action is aware of the Java syntax. It may not function properly when the code has syntax errors. (Arrow Up). Alt+Shift+Up Option+Shift+Up Yes Source
Show Tooltip Description Shows the value of a hover that would appear at the current cursor location. The dialog shown is scrollable and does not shorten descriptions. F2 F2 Yes Source
Content Assist Opens a context assist dialog at the current cursor position to bring up Java code assist proposals and templates. See the Templates preference page for available templates (Java > Editor > Temp Ctrl+Space Cmd+Space Yes Source
Quick Fix If the cursor is located at a location with problem indication this opens a context assist dialog at the current cursor to present possible corrections. Ctrl+1 Cmd+1 Yes Source
Parameter Hints If the cursor is located at the parameter specification for method reference, this actions shows a hover with parameter types information.The parameter at the current cursor location is shown in bold. Ctrl+Shift+Space Cmd+Shift+Space Yes Source
Open Tries to resolve the element referenced at the current code selection and opens the file declaring the reference. F3 F3 Yes Source
Open Type Hierarchy Tries to resolve the element referenced at the current code selection and opens the element in the Type Hierarchy view. Invoked on elements, opens the type hierarchy of the element. Supported in the J F4 F4 Yes Source
Open External Javadoc Opens the Javadoc documentation of the currently selected element or text selection. The location of the Javadoc of a JAR or a project is specified in the Javadoc Location property page on projects or Shift+F2 Shift+F2 Yes Source
Open Type Brings up the Open Type selection dialog to open a type in the editor.The Open Type selection dialog shows all types existing in the workspace. Ctrl+Shift+T Cmd+Shift+T Yes Source
Open Type In Hierarchy Brings up the Open Type selection dialog to open a type in the editor and the Type Hierarchy view. The Open Type selection dialog shows all types that exist in the workspace. Ctrl+Shift+H Cmd+Shift+H Yes Source
Show Outline Opens the lightweight outliner for the currently selected type. Ctrl+O Cmd+O Yes Source
Go to Next Problem Selects the next problem. Supported in the Java editor. Ctrl+. Cmd+. Yes Source
Go to Previous Problem Selects the previous problem. Supported in the Java editor. Ctrl+, Cmd+, Yes Source
Go to Last Edit Location Reveal the location where the last edit occurred. Ctrl+Q Cmd+Q Yes Source
Go to Line Opens an a dialog which allows entering the line number to which the editor should jump to. Editor only. Ctrl+L Cmd+L Yes Source
Search... Opens the search dialog Ctrl+H Cmd+H Yes Source
Occurrences in File Finds all occurrences of the selected Java element in its file Ctrl+Shift+U Cmd+Shift+U Yes Source
Build All Builds the all projects in the workspace. This is an incremental build, means that the builder analyzes the changes since the last time of build and minimizes the number of changed files. Ctrl+B Cmd+B Yes Source
Comment Comments out all lines containing the current selection. Ctrl+/ Cmd+/ Yes Source
Uncomment Uncomments all lines containing the current selection. Ctrl+\ Cmd+\ Yes Source
Indent Indent current line. Ctrl+I Cmd+I Yes Source
Shift Right Increments the level of indentation of the currently select lines. Only activated when the selection covers multiple lines or a single whole line. Tab Tab Yes Source
Shift Left Decrements the level of indentation of the currently select lines. Only activated when the selection covers multiple lines or a single whole line. Shift+Tab Shift+Tab Yes Source
Format Uses the code formatter to format the current text selection. The formatting options are configured on the Code Formatter preference page (Java > Code Formatter) Ctrl+Shift+F Cmd+Shift+F Yes Source
Organize Imports Organizes the import declarations in the compilation unit currently open or selected. Unnecessary import declarations are removed, and required import declarations are ordered as specified in the Orga Ctrl+Shift+O Cmd+Shift+O Yes Source
Add Import Creates an import declaration for a type reference currently selected. If the type reference if qualified, the qualification will be removed if possible. If the referenced type name can not be mapped Ctrl+Shift+M Cmd+Shift+M Yes Source
Undo Does an Undo of the last refactoring. The refactoring undo buffer is only valid as long as no other source changes than refactoring have been performed. Alt+Shift+Z Option+Shift+Z Yes Source
Redo Does a Redo of the last undone refactoring. The refactoring undo/redo buffer is only valid as long as no other source changes than refactoring have been performed. Alt+Shift+Y Option+Shift+Y Yes Source
Rename Starts the Rename refactoring dialog: Renames the selected element and (if enabled) corrects all references to the elements (also in other files). Is available on methods, fields, local variables, met Alt+Shift+R Option+Shift+R Yes Source
Move Starts the Move refactoring dialog: Moves the selected elements and (if enabled) corrects all references to the elements (also in other files). Can be applied to one instance method (which can be move Alt+Shift+V Option+Shift+V Yes Source
Inline Starts the Inline refactoring dialog. Inlines local variables, methods or constants. This refactoring is available on methods, static final fields and text selections that resolve to methods, static f Alt+Shift+I Option+Shift+I Yes Source
Extract Method Starts the Extract Method refactoring dialog. Creates a new method containing the statements or expression currently selected and replaces the selection with a reference to the new method. You can use Alt+Shift+M Option+Shift+M Yes Source
Extract Local Variable Starts the Extract Variable refactoring dialog. Creates a new variable assigned to the expression currently selected and replaces the selection with a reference to the new variable. This refactoring i Alt+Shift+L Option+Shift+L Yes Source

← All apps on Shortcut Atlas

Loading Shortcut Atlas…