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 Windows, Linux Source
Close Close the current editor. If the editor contains unsaved data, a save request dialog will be shown. Ctrl+F4 Cmd+F4 Windows, Linux Source
Close All Close all editors. If editor contains unsaved data, a save request dialog will be shown. Ctrl+Shift+F4 Cmd+Shift+F4 Windows, Linux Source
Save Save the content of the current editor. Disabled if the editor does not contain unsaved changes. Ctrl+S Cmd+S Windows, Linux 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 Windows, Linux Source
Print Prints the content of the current editor. Enabled when an editor has the focus. Ctrl+P Cmd+P Windows, Linux 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 Windows, Linux Source
Undo Revert the last change in the editor Ctrl+Z Cmd+Z Windows, Linux Source
Redo Revert an undone change Ctrl+Y Cmd+Y Windows, Linux 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 Windows, Linux Source
Copy Copies the currently selected text or elements to the clipboard Ctrl+C Cmd+C Windows, Linux 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 Windows, Linux Source
Delete Delete the current text or element selection. Delete Delete Windows, macOS, Linux Source
Select All Select all the editor content.. Ctrl+A Cmd+A Windows, Linux Source
Find / Replace Open the Find / Replace dialog. Editor only. Ctrl+F Cmd+F Windows, Linux Source
Find Next Finds the next occurrence of the currently selected text. Editor only. Ctrl+K Cmd+K Windows, Linux Source
Find Previous Finds the previous occurrence of the currently selected text. Editor only. Ctrl+Shift+K Cmd+Shift+K Windows, Linux 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 Windows, Linux 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 Windows, Linux Source
Add Task Add a user defined task to the current text selection or selected element. Alt+Enter Option+Enter Windows, Linux 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 Windows, Linux 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 Windows, macOS, Linux 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 Windows, Linux 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 Windows, Linux 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 Windows, Linux Source
Open Tries to resolve the element referenced at the current code selection and opens the file declaring the reference. F3 F3 Windows, macOS, Linux 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 Windows, macOS, Linux 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 Windows, macOS, Linux 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 Windows, Linux 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 Windows, Linux Source
Show Outline Opens the lightweight outliner for the currently selected type. Ctrl+O Cmd+O Windows, Linux Source
Go to Next Problem Selects the next problem. Supported in the Java editor. Ctrl+. Cmd+. Windows, Linux Source
Go to Previous Problem Selects the previous problem. Supported in the Java editor. Ctrl+, Cmd+, Windows, Linux Source
Go to Last Edit Location Reveal the location where the last edit occurred. Ctrl+Q Cmd+Q Windows, Linux 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 Windows, Linux Source
Search... Opens the search dialog Ctrl+H Cmd+H Windows, Linux Source
Occurrences in File Finds all occurrences of the selected Java element in its file Ctrl+Shift+U Cmd+Shift+U Windows, Linux 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 Windows, Linux Source
Comment Comments out all lines containing the current selection. Ctrl+/ Cmd+/ Windows, Linux Source
Uncomment Uncomments all lines containing the current selection. Ctrl+\ Cmd+\ Windows, Linux Source
Indent Indent current line. Ctrl+I Cmd+I Windows, Linux 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 Windows, macOS, Linux 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 Windows, macOS, Linux 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 Windows, Linux 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 Windows, Linux 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 Windows, Linux 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 Windows, Linux 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 Windows, Linux 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 Windows, Linux 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 Windows, Linux 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 Windows, Linux 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 Windows, Linux 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 Windows, Linux Source

← All apps on Shortcut Atlas

Loading Shortcut Atlas…