General 12
| Action | Windows / Linux | Mac |
|---|---|---|
| Search EverywhereA double tap of Shift opens one search box for classes, files, symbols, actions and settings. | ShiftthenShift | ShiftthenShift |
| Find ActionFinds any IDE command by name, including commands that have neither a shortcut nor a menu entry. | Ctrl+Shift+A | Cmd+Shift+A |
| Open SettingsOpens the Settings dialog, whose Keymap page shows every binding and lets you reassign it. | Ctrl+Alt+S | Cmd+, |
| Project StructureOpens the dialog that holds the project SDK, the language level, the compiler output paths and the libraries. | Ctrl+Alt+Shift+S | Cmd+; |
| Run AnythingA double tap of Ctrl on both systems; the popup launches run configurations and commands by name. | CtrlthenCtrl | CtrlthenCtrl |
| Save All | Ctrl+S | Cmd+S |
| New file in current directoryCreates a new item in the directory of the file that is open in the editor. | Ctrl+Alt+Insert | Ctrl+Option+N |
| New scratch fileCreates a temporary file that is kept outside the project, for trying out a piece of code. | Ctrl+Alt+Shift+Insert | Cmd+Shift+N |
| Increase editor font sizeEnlarges the code font globally rather than in the active tab only. | Alt+Shift+. | Ctrl+Shift+. |
| Decrease editor font sizeMakes the code font smaller in all editors; an indicator shows the current size. | Alt+Shift+, | Ctrl+Shift+, |
| SwitcherHold Ctrl and keep pressing Tab to walk through open files and tool windows. | Ctrl+Tab | Ctrl+Tab |
| Open the Switch menuOne popup for changing the color scheme, the keymap or the viewing mode; press the key again to undo the change. | Ctrl+` | Ctrl+` |
Editing 27
| Action | Windows / Linux | Mac |
|---|---|---|
| Cut | Ctrl+X | Cmd+X |
| Copy | Ctrl+C | Cmd+C |
| Paste | Ctrl+V | Cmd+V |
| Paste as Plain TextPastes the clipboard text as it is, without the reformatting a normal paste applies. | Ctrl+Alt+Shift+V | Cmd+Option+Shift+V |
| Paste from HistoryLists earlier clipboard entries so that an older copy can be chosen and pasted. | Ctrl+Shift+V | Cmd+Shift+V |
| Copy PathsPuts the path of the current or selected file on the clipboard. | Ctrl+Shift+C | Cmd+Shift+C |
| Copy ReferenceCopies a reference to the class, method or line at the caret rather than its text. | Ctrl+Alt+Shift+C | Cmd+Option+Shift+C |
| Undo | Ctrl+Z | Cmd+Z |
| RedoRedo is the Undo key plus Shift in both keymaps; Ctrl with Y is taken by Delete Line. | Ctrl+Shift+Z | Cmd+Shift+Z |
| Indent SelectionMoves the selected lines one indent level to the right. | Tab | Tab |
| Unindent Line or SelectionMoves the current line or the selected lines one indent level to the left. | Shift+Tab | Shift+Tab |
| Auto-Indent LinesCorrects the indentation of the current line or selection and leaves other formatting alone. | Ctrl+Alt+I | Ctrl+Option+I |
| Start New LineAdds a line below and moves the caret there without breaking the current line. | Shift+Enter | Shift+Return |
| Start new line aboveInserts an empty line above the caret's line and puts the caret on it. | Ctrl+Alt+Enter | Cmd+Option+Return |
| Delete LineRemoves the whole line at the caret; the macOS keymap uses Cmd with Backspace. | Ctrl+Y | Cmd+Backspace |
| Join LinesMerges the following line into the current one; the macOS keymap keeps Ctrl for it. | Ctrl+Shift+J | Ctrl+Shift+J |
| Duplicate Line or SelectionCopies the current line, or the selected fragment, right below itself. | Ctrl+D | Cmd+D |
| Toggle CaseSwitches the selected text between upper and lower case. | Ctrl+Shift+U | Cmd+Shift+U |
| Move Statement UpMoves the whole statement at the caret above the one before it. | Ctrl+Shift+Up | Cmd+Shift+Up |
| Move Statement DownMoves the whole statement at the caret below the one after it. | Ctrl+Shift+Down | Cmd+Shift+Down |
| Move Element LeftSwaps the element at the caret, for example a method argument, with its left neighbour. | Ctrl+Alt+Shift+Left | Cmd+Option+Shift+Left |
| Move Element RightSwaps the element at the caret with its right neighbour; the vendor table labels the row Move Statement Right. | Ctrl+Alt+Shift+Right | Cmd+Option+Shift+Right |
| Move Line UpMoves only the current line up, whatever statement it belongs to. | Alt+Shift+Up | Option+Shift+Up |
| Move Line DownMoves only the current line down, whatever statement it belongs to. | Alt+Shift+Down | Option+Shift+Down |
| Toggle line commentComments or uncomments the current line, or every line of the selection. | Ctrl+/ | Cmd+/ |
| Toggle block commentWraps the selection in a block comment; the Mac binding takes Option where Windows takes Shift. | Ctrl+Shift+/ | Cmd+Option+/ |
| Unwrap or removeShows a popup with the unwrap and remove actions that apply to the statement at the caret. | Ctrl+Shift+Delete | Cmd+Shift+Delete |
Code completion and generation 18
Surround With is one of the few editing keys that differ on Linux: with the XWin keymap selected, the help shows Ctrl + Alt + Shift + B.
| Action | Windows / Linux | Mac |
|---|---|---|
| Basic CompletionSuggests names that are valid at the caret; the macOS keymap keeps Ctrl for all three completion keys. | Ctrl+Space | Ctrl+Space |
| Type-Matching CompletionNarrows the suggestions to items whose type fits what the code at the caret expects. | Ctrl+Shift+Space | Ctrl+Shift+Space |
| Second Basic Completion | Ctrl+Alt+Space | Ctrl+Option+Space |
| Complete Current StatementAdds the trailing symbols a statement still needs and moves the caret to where the next one starts. | Ctrl+Shift+Enter | Cmd+Shift+Return |
| Parameter InfoShows which parameters the method call at the caret accepts. | Ctrl+P | Cmd+P |
| Quick DocumentationShows the documentation of the symbol at the caret in a popup; the Mac key is plain F1. | Ctrl+Q | F1 |
| External DocumentationOpens the documentation of the symbol in a web browser instead of the popup. | Shift+F1 | Shift+F1 |
| Quick DefinitionPreviews the definition of the entry selected in the completion list; on a Mac the key is Option with Space. | Ctrl+Shift+I | Option+Space |
| Type InfoShows the type of the expression at the caret; when several expressions qualify, a popup asks which one. | Ctrl+Shift+P | Ctrl+Shift+P |
| Context InfoShows the declaration of the enclosing method or class in a tooltip when it has scrolled out of view. | Alt+Q | Ctrl+Shift+Q |
| GenerateOpens the Generate popup with constructors, getters and setters, equals and hashCode, toString and other members. | Alt+Insert | Cmd+N |
| Override MethodsLists the superclass methods that can still be overridden and generates the ones you select; same key on a Mac. | Ctrl+O | Ctrl+O |
| Implement MethodsGenerates the methods of an interface or abstract class that the current class has not implemented yet. | Ctrl+I | Ctrl+I |
| Surround WithWraps the selected code in a construct picked from a list, such as if, a loop or try/catch. | Ctrl+Alt+T | Cmd+Option+T |
| Surround with live templateWraps the selected block in a live template chosen from a list. | Ctrl+Alt+J | Cmd+Option+J |
| Reformat CodeApplies the current code style to the selected fragment, or to the whole file when nothing is selected. | Ctrl+Alt+L | Cmd+Option+L |
| Reformat File dialogOpens the dialog in which reformatting a file can be combined with cleaning up its imports. | Ctrl+Alt+Shift+L | Cmd+Option+Shift+L |
| Optimize ImportsCleans up the import statements of the current file, or of a file or directory selected in the Project tool window. | Ctrl+Alt+O | Ctrl+Option+O |
Caret movement 13
| Action | Windows / Linux | Mac |
|---|---|---|
| Caret to previous word | Ctrl+Left | Option+Left |
| Caret to next word | Ctrl+Right | Option+Right |
| Caret to line startA PC keyboard uses Home; the macOS keymap uses Cmd with the Left arrow. | Home | Cmd+Left |
| Caret to line endA PC keyboard uses End; the macOS keymap uses Cmd with the Right arrow. | End | Cmd+Right |
| Caret to matching braceJumps between the opening and the closing brace of the pair at the caret. | Ctrl+Shift+M | Ctrl+M |
| Jump to code block startJumps to the opening brace of the block that encloses the caret. | Ctrl+[ | Cmd+Option+[ |
| Jump to code block endJumps to the closing brace of the block that encloses the caret. | Ctrl+] | Cmd+Option+] |
| Caret to page topPuts the caret on the first line visible in the editor. | Ctrl+Page Up | Cmd+Page Up |
| Caret to page bottomPuts the caret on the last line visible in the editor. | Ctrl+Page Down | Cmd+Page Down |
| Page Up | Page Up | Page Up |
| Page Down | Page Down | Page Down |
| Caret to start of file | Ctrl+Home | Cmd+Home |
| Caret to end of file | Ctrl+End | Cmd+End |
Selecting text 19
| Action | Windows / Linux | Mac |
|---|---|---|
| Select All | Ctrl+A | Cmd+A |
| Extend selection left | Shift+Left | Shift+Left |
| Extend selection right | Shift+Right | Shift+Right |
| Select to previous word | Ctrl+Shift+Left | Option+Shift+Left |
| Select to next word | Ctrl+Shift+Right | Option+Shift+Right |
| Select to line start | Shift+Home | Cmd+Shift+Left |
| Select to line end | Shift+End | Cmd+Shift+Right |
| Extend selection up | Shift+Up | Shift+Up |
| Extend selection down | Shift+Down | Shift+Down |
| Select to code block startSelects from the caret back to the opening brace of the enclosing block. | Ctrl+Shift+[ | Cmd+Option+Shift+[ |
| Select to code block endSelects from the caret forward to the closing brace of the enclosing block. | Ctrl+Shift+] | Cmd+Option+Shift+] |
| Select to page topSelects up to the first line visible in the editor. | Ctrl+Shift+Page Up | Cmd+Shift+Page Up |
| Select to page bottomSelects down to the last line visible in the editor. | Ctrl+Shift+Page Down | Cmd+Shift+Page Down |
| Select a page up | Shift+Page Up | Shift+Page Up |
| Select a page down | Shift+Page Down | Shift+Page Down |
| Select to start of file | Ctrl+Shift+Home | Cmd+Shift+Home |
| Select to end of file | Ctrl+Shift+End | Cmd+Shift+End |
| Extend SelectionEach press widens the selection to the next larger code construct; on a Mac it is Option with Up. | Ctrl+W | Option+Up |
| Shrink SelectionTakes the selection back one step, to the smaller construct it grew from. | Ctrl+Shift+W | Option+Down |
Code folding 10
| Action | Windows / Linux | Mac |
|---|---|---|
| ExpandOpens the folded fragment at the caret; the plus is the key on the numeric keypad. | Ctrl+Num + | Cmd+Num + |
| CollapseFolds the fragment at the caret; the minus is the key on the numeric keypad. | Ctrl+Num - | Cmd+Num - |
| Expand RecursivelyOpens the fragment at the caret together with every fragment nested in it. | Ctrl+Alt+Num + | Cmd+Option+Num + |
| Collapse RecursivelyFolds the fragment at the caret together with every fragment nested in it. | Ctrl+Alt+Num - | Cmd+Option+Num - |
| Expand AllOpens every collapsed fragment in the file. | Ctrl+Shift+Num + | Cmd+Shift+Num + |
| Collapse AllFolds every foldable fragment in the file. | Ctrl+Shift+Num - | Cmd+Shift+Num - |
| Fold SelectionTurns the selected code into a folded fragment of its own. | Ctrl+. | Cmd+. |
| Expand to levelA two-step key: the chord first, then a digit for the nesting depth to which the current fragment opens. | Ctrl+Num *then1-5 | Cmd+Num *then1-5 |
| Expand all to levelOpens the collapsed fragments of the whole file down to the nesting depth of the digit pressed. | Ctrl+Shift+Num *then1-5 | Cmd+Option+Num *then1-5 |
| Go to custom folding regionJumps to a folding region you marked yourself with editor-fold or region comments. | Ctrl+Alt+. | Cmd+Option+. |
Multiple carets 11
Clone Caret is a double press, not a chord: press the modifier twice, keep it held the second time, then press the Up or Down arrow.
| Action | Windows / Linux | Mac |
|---|---|---|
| Add or remove a caretClick with the modifiers held to place another caret; click an existing caret to remove it. | Alt+Shift+Click | Option+Shift+Click |
| Toggle Column Selection ModeSwitches the editor between ordinary selection and rectangular, column-wise selection. | Alt+Shift+Insert | Cmd+Shift+8 |
| Clone Caret AbovePress the modifier twice, keep it down the second time, then press Up. | CtrlthenCtrl+Up | OptionthenOption+Up |
| Clone Caret BelowPress the modifier twice, keep it down the second time, then press Down. | CtrlthenCtrl+Down | OptionthenOption+Down |
| Carets on every selected linePuts one caret at the end of each line of the selection. | Alt+Shift+G | Option+Shift+G |
| Select next occurrenceSelects the next match of the word or selection and adds a caret to it. | Alt+J | Ctrl+G |
| Select All OccurrencesSelects every match in the file at once, each with a caret of its own. | Ctrl+Alt+Shift+J | Cmd+Ctrl+G |
| Deselect last occurrenceRemoves the match that was added last from the multiple selection. | Alt+Shift+J | Ctrl+Shift+G |
| Rectangular selection to clickMiddle-click with the modifiers held to select the column block between caret and pointer. | Alt+Shift+Middle-click | Option+Shift+Middle-click |
| Rectangular selection by draggingHold the modifier and drag with the left button to mark a column block. | Alt+Click | Option+Click |
| Add another rectangular selectionDragging with these modifiers keeps the column blocks already selected and adds one more. | Ctrl+Alt+Shift+Click | Cmd+Option+Shift+Click |
Bookmarks 6
| Action | Windows / Linux | Mac |
|---|---|---|
| Toggle anonymous bookmarkAdds a bookmark without an identifier to the current line, or removes it; a Mac uses F3. | F11 | F3 |
| Toggle mnemonic bookmarkAdds a bookmark and lets you give it a digit or a letter as its identifier. | Ctrl+F11 | Option+F3 |
| Toggle bookmark with digitSets or clears the bookmark for the digit pressed together with the modifiers. | Ctrl+Shift+0-9 | Ctrl+Shift+0-9 |
| Go to numbered bookmarkHold Ctrl and press the digit of a bookmark to jump to it. | Ctrl+0-9 | Ctrl+0-9 |
| Show all bookmarksOpens a popup with all line bookmarks set in the code. | Shift+F11 | Cmd+F3 |
| Show Mnemonic BookmarksOpens a popup that holds only the bookmarks with a digit or a letter. | Ctrl+Shift+F11 | Cmd+Option+F3 |
Find and replace 7
| Action | Windows / Linux | Mac |
|---|---|---|
| FindSearches for text in the current file. | Ctrl+F | Cmd+F |
| Find NextGoes to the following match of the current search; the macOS keymap uses Cmd with G. | F3 | Cmd+G |
| Find PreviousGoes to the preceding match of the current search. | Shift+F3 | Cmd+Shift+G |
| ReplaceOpens the search bar with a replacement field for the current file. | Ctrl+R | Cmd+R |
| Find in FilesSearches for text across the project or a narrower scope. | Ctrl+Shift+F | Cmd+Shift+F |
| Replace in FilesFinds and replaces text across the project or a narrower scope. | Ctrl+Shift+R | Cmd+Shift+R |
| Find word at caretJumps to the following place where the word under the caret appears; the macOS keymap page gives it no key. | Ctrl+F3 | — |
Code inspection 5
| Action | Windows / Linux | Mac |
|---|---|---|
| Show Context ActionsOffers quick-fixes for a highlighted problem and intention actions for the code at the caret; the keymap table says Show Intention Actions. | Alt+Enter | Option+Return |
| Error DescriptionShows the description of the error or warning at the caret. | Ctrl+F1 | Cmd+F1 |
| Next Highlighted ErrorMoves the caret to the next problem highlighted in the file. | F2 | F2 |
| Previous Highlighted ErrorMoves the caret to the previous problem highlighted in the file. | Shift+F2 | Shift+F2 |
| Run Inspection by NameAsks for the name of one inspection and runs just that inspection on a scope you choose. | Ctrl+Alt+Shift+I | Cmd+Option+Shift+I |
Building and running 8
| Action | Windows / Linux | Mac |
|---|---|---|
| Build ProjectCompiles the project or the module selected in the Project tool window. | Ctrl+F9 | Cmd+F9 |
| RebuildThe keymap table calls this key Rebuild; the Build menu shows it as Recompile for the class open in the editor. | Ctrl+Shift+F9 | Cmd+Shift+F9 |
| RunStarts the selected run configuration; the vendor table names the row Run context configuration. | Shift+F10 | Ctrl+R |
| Run from configuration listOpens a popup with the run configurations so that one can be picked and started. | Alt+Shift+F10 | Ctrl+Option+R |
| Run test at caretRuns the test method or test class under the caret; on a folder in the Project tool window, everything inside it. | Ctrl+Shift+F10 | Ctrl+Shift+R |
| RerunIn the Run tool window, stops the application and starts it once more. | Ctrl+F5 | Cmd+R |
| StopEnds the program that is running or being debugged. | Ctrl+F2 | Cmd+F2 |
| Stop Background ProcessesLists the background tasks of the IDE so that one can be cancelled. | Ctrl+Shift+F2 | Cmd+Shift+F2 |
Debugging 20
The first column is the predefined Windows keymap. With the Linux keymap, which the help's keymap selector calls XWin, some debugger keys use digits instead of function keys: Run to Cursor is Alt + Shift + 9 and Force Run to Cursor is Ctrl + Alt + 9.
| Action | Windows / Linux | Mac |
|---|---|---|
| DebugStarts the selected run configuration under the debugger. | Shift+F9 | Ctrl+D |
| Debug from configuration listOpens a popup with the run configurations so that one can be picked and debugged. | Alt+Shift+F9 | Ctrl+Option+D |
| Attach to ProcessConnects the debugger to a process that is already running. | Ctrl+Alt+F5 | Option+Shift+F5 |
| Resume ProgramLets the suspended program run on until the next breakpoint. | F9 | Cmd+Option+R |
| Step OverRuns the current line and stops at the next one without entering the methods it calls. | F8 | F8 |
| Force Step OverSteps to the next line even if the methods called on the way contain breakpoints. | Alt+Shift+F8 | Option+Shift+F8 |
| Step IntoEnters the method called on the current line. | F7 | F7 |
| Smart Step IntoLets you pick the method to enter when the line holds several calls. | Shift+F7 | Shift+F7 |
| Force Step IntoEnters a method even when the debugger's stepping settings would skip it. | Alt+Shift+F7 | Option+Shift+F7 |
| Step OutFinishes the current method and stops in the method that called it. | Shift+F8 | Shift+F8 |
| Run to CursorResumes the program and suspends it at the line where the caret is. | Alt+F9 | Option+F9 |
| Force Run to CursorRuns to the caret line and skips any breakpoints on the way. | Ctrl+Alt+F9 | Cmd+Option+F9 |
| Show Execution PointBrings the editor back to the line where the program is suspended. | Alt+F10 | Option+F10 |
| Evaluate ExpressionOpens a dialog that computes an expression in the context of the suspended program. | Alt+F8 | Option+F8 |
| Quick Evaluate ExpressionShows the value of the selected expression in a popup, without the dialog. | Ctrl+Alt+F8 | Cmd+Option+F8 |
| Toggle Line BreakpointSets a breakpoint on the line at the caret, or removes the one that is there. | Ctrl+F8 | Cmd+F8 |
| Toggle temporary breakpointSets a breakpoint that is removed as soon as it has been hit once. | Ctrl+Alt+Shift+F8 | Cmd+Option+Shift+F8 |
| View BreakpointsOpens the Breakpoints dialog, which lists all breakpoints with their settings. | Ctrl+Shift+F8 | Cmd+Shift+F8 |
| Edit BreakpointShares its key with View Breakpoints: on a breakpoint it opens the full list of that breakpoint's properties. | Ctrl+Shift+F8 | Cmd+Shift+F8 |
| Set ValueChanges the value of the selected variable while the program is suspended. | F2 | F2 |
Refactoring 12
| Action | Windows / Linux | Mac |
|---|---|---|
| Refactor ThisLists the refactorings that apply to the element at the caret, such as rename, move, copy and safe delete. | Ctrl+Alt+Shift+T | Ctrl+T |
| RenameRenames the symbol at the caret and updates the references to it. | Shift+F6 | Shift+F6 |
| Change SignatureChanges a method's name, parameters or return type and updates the calls. | Ctrl+F6 | Cmd+F6 |
| InlineReplaces the uses of a variable or method with its body, the reverse of an extraction. | Ctrl+Alt+N | Cmd+Option+N |
| MoveMoves the selected class, member or file elsewhere and corrects the references to it. | F6 | F6 |
| CopyCreates a copy of the selected class or file under the name and in the location you give in the dialog. | F5 | F5 |
| Extract MethodTurns the selected statements into a new method and calls it in their place. | Ctrl+Alt+M | Cmd+Option+M |
| Introduce VariablePuts the selected expression into a new local variable. | Ctrl+Alt+V | Cmd+Option+V |
| Extract ConstantReplaces the selected expression with a constant; pressing the key twice opens the dialog with visibility and target class. | Ctrl+Alt+C | Cmd+Option+C |
| Introduce FieldPuts the selected expression into a new field of the class. | Ctrl+Alt+F | Cmd+Option+F |
| Introduce ParameterTurns the selected expression into a new parameter of the enclosing method. | Ctrl+Alt+P | Cmd+Option+P |
| Safe DeleteSearches for usages before deleting; on a Mac the key is Cmd with the forward Delete key. | Alt+Delete | Cmd+Delete |
Version control 9
| Action | Windows / Linux | Mac |
|---|---|---|
| VCS Operations PopupOpens a quick list of the version control commands; the help also calls it the Git Operations Popup. | Alt+` | Ctrl+V |
| CommitOpens the Commit tool window with the changed files. | Ctrl+K | Cmd+K |
| Commit and PushCommits and sends the commit to the remote in one step. | Ctrl+Alt+K | Cmd+Option+K |
| Stage fileStages the whole file that is selected in the Commit tool window. | Ctrl+Alt+A | Cmd+Option+A |
| Update ProjectBrings the project up to date with the changes in the remote repository. | Ctrl+T | Cmd+T |
| PushOpens the Push dialog for sending local commits to the remote repository. | Ctrl+Shift+K | Cmd+Shift+K |
| RollbackReverts local changes in the selected files. | Ctrl+Alt+Z | Cmd+Option+Z |
| Next ChangeMoves the caret to the next changed fragment in the editor; the Mac binding keeps Ctrl. | Ctrl+Alt+Shift+Down | Ctrl+Option+Shift+Down |
| Previous ChangeMoves the caret to the previous changed fragment in the editor. | Ctrl+Alt+Shift+Up | Ctrl+Option+Shift+Up |
Comparing files 8
Show Diff and Compare Files use the key that duplicates a line in the editor. Which action runs depends on where the focus is: a list of changes, the Project tool window or the code.
| Action | Windows / Linux | Mac |
|---|---|---|
| Show DiffFor a file selected in a list of changes, opens the diff viewer. | Ctrl+D | Cmd+D |
| Compare FilesWith two files selected in the Project tool window, opens them side by side. | Ctrl+D | Cmd+D |
| Next DifferenceIn the diff viewer, goes to the following difference. | F7 | F7 |
| Previous DifferenceIn the diff viewer, goes to the preceding difference. | Shift+F7 | Shift+F7 |
| Accept Left SideTakes the version shown in the left pane; the Mac binding is Cmd and Ctrl with Right. | Ctrl+Alt+R | Cmd+Ctrl+Right |
| Accept Right SideTakes the version shown in the right pane; the Mac binding is Cmd and Ctrl with Left. | Ctrl+Alt+A | Cmd+Ctrl+Left |
| Select Opposite Diff PaneMoves the caret to the other pane of the diff viewer. | Ctrl+Shift+Tab | Ctrl+Shift+Tab |
| Diff viewer settingsShows a popup menu with the diff commands that are used most often. | Ctrl+Shift+D | Cmd+Shift+D |
Tool windows 27
| Action | Windows / Linux | Mac |
|---|---|---|
| Show Project windowShows or hides the Project tool window; the other numbered tool windows answer to their digit the same way. | Alt+1 | Cmd+1 |
| Show Bookmarks window | Alt+2 | Cmd+2 |
| Show Find windowBrings back the tool window with the latest search and usage results. | Alt+3 | Cmd+3 |
| Show Run windowOpens the tool window with the output of the application that was started. | Alt+4 | Cmd+4 |
| Show Debug window | Alt+5 | Cmd+5 |
| Show Problems windowOpens the list of errors and warnings that code analysis has found. | Alt+6 | Cmd+6 |
| Show Structure windowOpens the structure of the current file as a tool window rather than a popup. | Alt+7 | Cmd+7 |
| Show Services window | Alt+8 | Cmd+8 |
| Show Version Control window | Alt+9 | Cmd+9 |
| Show Commit windowOpens the tool window in which changed files are staged and committed. | Alt+0 | Cmd+0 |
| Show Terminal windowOpens the built-in terminal; unlike the numbered windows it keeps the same function key on a Mac. | Alt+F12 | Option+F12 |
| Hide Active Tool WindowHides the tool window that has the focus; its own shortcut brings it back. | Shift+Esc | Shift+Esc |
| Hide All Tool WindowsHides every tool window so the editor fills the frame; a second press brings them back. | Ctrl+Shift+F12 | Cmd+Shift+F12 |
| Focus last tool windowMoves the focus from the editor to the tool window that was active last. | F12 | F12 |
| Jump to SourceFrom an item selected in a tool window, opens its file at that place; a Mac uses Cmd with Down. | F4 | Cmd+Down |
| Maximize Tool WindowEnlarges the active tool window to its full width or height. | Ctrl+Shift+' | Cmd+Shift+' |
| Stretch to LeftResizes a vertical tool window by moving its border to the left. | Ctrl+Alt+Shift+Left | Ctrl+Option+Left |
| Stretch to RightResizes a vertical tool window by moving its border to the right. | Ctrl+Alt+Shift+Right | Ctrl+Option+Right |
| Stretch to TopResizes a horizontal tool window by moving its border up. | Ctrl+Alt+Shift+Up | Ctrl+Option+Up |
| Stretch to BottomResizes a horizontal tool window by moving its border down. | Ctrl+Alt+Shift+Down | Ctrl+Option+Down |
| Restore default layoutPuts the tool windows back into the arrangement saved as the Default layout. | Shift+F12 | Shift+F12 |
| New item in Project tool windowWith the focus in the project tree, the editor's Generate key creates a class, file, package or directory instead. | Alt+Insert | Cmd+N |
| Open in Right SplitWith a file selected in the Project tool window, opens it beside the current editor rather than as a new tab. | Shift+Enter | Shift+Return |
| Show diagramDraws a diagram, such as a UML class diagram, of the item selected in the Project tool window. | Ctrl+Alt+Shift+UorCtrl+Alt+U | Cmd+Option+Shift+UorCmd+Option+U |
| New terminal tabIn the Terminal tool window, opens another shell session; in the editor the same Windows key is Go to Test. | Ctrl+Shift+T | Cmd+T |
| List terminal tabsShows every open terminal session in a popup so that one can be picked. | Alt+Down | Ctrl+Shift+Down |
| Close Run tabEnds the process shown in the active Run tab and removes that tab. | Ctrl+Shift+F4 | Ctrl+Shift+F4 |
No row on this page matches that filter.
Notes
Navigation is what JetBrains users are actually paying for
Ctrl + N goes to a class by name, Ctrl + Shift + N to any file or directory, and Ctrl + Alt + Shift + N to a symbol — a method, field or constant anywhere in the project. All three open Search Everywhere with the scope already set, and file search accepts CamelCase and snake_case abbreviations. Ctrl + E lists recently opened files and is usually faster than any tab bar; Ctrl + Shift + E shows recently visited code locations, and a second press narrows them to the edited ones. Ctrl + B jumps to a declaration, and Ctrl + Alt + Left and Ctrl + Alt + Right walk back and forward through everywhere you have been, which makes deep dives into unfamiliar code safe. The macOS keymap puts the three searches on Cmd + O, Cmd + Shift + O and Cmd + Option + O, and Back and Forward on Cmd + [ and Cmd + ].
Editing shortcuts that differ from other editors
Ctrl + W does not close anything: it extends the selection outward by syntax — word, expression, statement, block — and pressing it repeatedly is how you select a whole method without dragging. Ctrl + D duplicates the line rather than deleting it, and Ctrl + Y deletes the line rather than redoing, two habits that trip up people who arrive from other editors; Redo is Ctrl + Shift + Z. Ctrl + Alt + L reformats the file to the project code style and is worth running before every commit. Ctrl + Shift + Space is type-matching completion: it filters suggestions to the type the current expression expects, which is a different list from plain Ctrl + Space. On a Mac, Extend Selection is Option + Up, Delete Line is Cmd + Backspace and Reformat Code is Cmd + Option + L, while both completion keys stay on Ctrl.
Refactor with keys, not menus
The refactorings in the table are the ones used daily. Shift + F6 renames a symbol and updates its references. Ctrl + Alt + V extracts the selected expression into a variable, Ctrl + Alt + M the selected statements into a method, and Ctrl + Alt + C and Ctrl + Alt + F extract a constant or a field. Ctrl + Alt + Shift + T lists every refactoring that applies at the caret, which helps while the individual keys are not yet in the fingers. The macOS keymap swaps Ctrl + Alt for Cmd + Option on the four extract keys (Cmd + Option + V, Cmd + Option + M, Cmd + Option + C, Cmd + Option + F), keeps Shift + F6 for Rename and puts Refactor This on Ctrl + T.
Tool windows by number
The main tool windows answer to Alt and a digit: Alt + 1 for Project, Alt + 7 for Structure and Alt + 9 for Version Control show or hide them. When the panels crowd the editor, Ctrl + Shift + F12 hides them all; press it again to restore the windows that were open. Shift + F10 runs and Shift + F9 debugs the current configuration, and the stepping keys are F8, F7, Shift + F8 and F9. On a Mac the digits take Cmd (Cmd + 1), Run is Ctrl + R, Debug is Ctrl + D and Resume is Cmd + Option + R; the three step keys are unchanged.
Questions
Do these shortcuts apply to PyCharm and WebStorm?
For the most part, yes. PyCharm, WebStorm, GoLand, PhpStorm and CLion are built on the same platform as IntelliJ IDEA and ship the same default keymap for editing, navigation, refactoring and debugging. Actions that belong to one language or tool differ, and each IDE publishes its own keymap page.
What does Ctrl + W do in IntelliJ?
It extends the selection to the next syntactic unit — word, then expression, then statement, then block. It does not close the editor tab; that is Ctrl + F4. On a Mac, Extend Selection is Option + Up and Cmd + W closes the tab.
Why does Ctrl + Y delete the line instead of redo?
That is the binding of the predefined Windows keymap. Redo is Ctrl + Shift + Z. If it bothers you, Settings › Keymap lets you reassign it or switch to another predefined keymap such as Eclipse or NetBeans; further keymaps can be installed as plugins.
How do I find the macOS equivalent of a shortcut?
The Mac column on this page gives the predefined macOS keymap from the IntelliJ IDEA 2026.2 help for every row. In the JetBrains help itself, the keymap selector at the top of a page switches all shortcuts shown there to the keymap you use, macOS included.
Is the Linux keymap the same as the Windows one?
Almost. The help has a separate XWin keymap for Linux, and where its page data can be compared with the Windows keymap only a handful of keys differ: Run to Cursor (Alt + Shift + 9), Force Run to Cursor (Ctrl + Alt + 9), Quick Evaluate Expression (Ctrl + Alt + 8), Show Usages (Ctrl + Alt + 7) and Surround With (Ctrl + Alt + Shift + B). Keymaps for GNOME and KDE are installed as plugins.
Sources and checks
- JetBrains — IntelliJ IDEA 2026.2 Help: Predefined Windows keymap Windows / Linux column of the main list
- JetBrains — IntelliJ IDEA 2026.2 Help: Predefined macOS keymap Mac column of the main list
- JetBrains — IntelliJ IDEA 2026.2 Help: Project structure settings (Windows and macOS keymaps) Project Structure
- JetBrains — IntelliJ IDEA 2026.2 Help: Editor basics (Windows and macOS keymaps) Close tab, navigation bar, Switch menu, right split
- JetBrains — IntelliJ IDEA 2026.2 Help: Write and edit source code (Windows and macOS keymaps) Unwrap, folding levels, custom folding regions
- JetBrains — IntelliJ IDEA 2026.2 Help: Code reference information (Windows and macOS keymaps) Type Info, External Documentation
23 more source pages
- JetBrains — IntelliJ IDEA 2026.2 Help: Code completion (Windows and macOS keymaps) Quick Definition
- JetBrains — IntelliJ IDEA 2026.2 Help: Source code navigation (Windows and macOS keymaps) Context Info
- JetBrains — IntelliJ IDEA 2026.2 Help: Override methods of a superclass (Windows and macOS keymaps) Override Methods
- JetBrains — IntelliJ IDEA 2026.2 Help: Implement methods of an interface or abstract class (Windows and macOS keymaps) Implement Methods
- JetBrains — IntelliJ IDEA 2026.2 Help: Live templates (Windows and macOS keymaps) Surround with live template
- JetBrains — IntelliJ IDEA 2026.2 Help: Auto import (Windows and macOS keymaps) Optimize Imports, Reformat File dialog
- JetBrains — IntelliJ IDEA 2026.2 Help: Search everywhere (Windows and macOS keymaps) Go to Class
- JetBrains — IntelliJ IDEA 2026.2 Help: Recent files and changes (Windows and macOS keymaps) Recent Locations
- JetBrains — IntelliJ IDEA 2026.2 Help: Search for usages (Windows and macOS keymaps) Find Usages in File, Find Usages with options
- JetBrains — IntelliJ IDEA 2026.2 Help: Source code hierarchy (Windows and macOS keymaps) Type, method and call hierarchy
- JetBrains — IntelliJ IDEA 2026.2 Help: Run tests (Windows and macOS keymaps) Run test at caret
- JetBrains — IntelliJ IDEA 2026.2 Help: Run tool window (Windows and macOS keymaps) Rerun, Close Run tab
- JetBrains — IntelliJ IDEA 2026.2 Help: Examine suspended program (Windows and macOS keymaps) Set Value
- JetBrains — IntelliJ IDEA 2026.2 Help: Move and copy refactorings (Windows and macOS keymaps) Copy
- JetBrains — IntelliJ IDEA 2026.2 Help: Extract constant (Windows and macOS keymaps) Extract Constant
- JetBrains — IntelliJ IDEA 2026.2 Help: Commit and push changes to Git repository (Windows and macOS keymaps) Commit and Push, Stage file
- JetBrains — IntelliJ IDEA 2026.2 Help: Tool windows (Windows and macOS keymaps) Jump to Source
- JetBrains — IntelliJ IDEA 2026.2 Help: Arrange tool windows (Windows and macOS keymaps) Maximize Tool Window, default layout
- JetBrains — IntelliJ IDEA 2026.2 Help: Project tool window (Windows and macOS keymaps) New item, diagrams
- JetBrains — IntelliJ IDEA 2026.2 Help: Terminal (Windows and macOS keymaps) Terminal tabs
- JetBrains — IntelliJ IDEA 2026.2 Help: Multiple cursors and selection ranges (Windows and macOS keymaps) How the Clone Caret double press works
- JetBrains — IntelliJ IDEA 2026.2 Help: Step through the program (XWin keymap for Linux selected) Linux differences in the debugger keys
- JetBrains — IntelliJ IDEA 2026.2 Help: Write and edit source code (XWin keymap for Linux selected) Linux difference for Surround With
Every row on this page was matched to a line in the documentation above on . A binding that could not be found there is not listed.
Found a wrong or missing key? Tell us and it gets checked against the source. How we verify describes the process and its limits.