General 21
WebStorm's index of menu items says its shortcut table holds for Windows and Linux alike, and JetBrains publishes the printable keymap card for the two systems together, so the left column serves Linux as well.
Ubuntu reserves some WebStorm defaults for itself: Ctrl + Alt + Left and Right switch workspaces, Ctrl + Alt + F12 opens the tty12 virtual console and Ctrl + Alt + S shades the window. The help knows no predefined keymap free of such clashes on Linux and suggests binding other keys to the actions you use most.
| Action | Windows / Linux | Mac |
|---|---|---|
| Search EverywherePress Shift twice to look up files, classes, symbols, actions and settings from one popup. | ShiftthenShift | ShiftthenShift |
| Find ActionLooks up any command, tool window or setting by name and runs it straight from the list. | Ctrl+Shift+A | Cmd+Shift+A |
| Run AnythingPress Ctrl twice to start run configurations, npm or yarn scripts and recent projects by name. | CtrlthenCtrl | CtrlthenCtrl |
| Open SettingsOpens the Settings dialog; its Keymap page shows every binding and lets you reassign it. | Ctrl+Alt+S | Cmd+, |
| SwitcherKeep Ctrl held and press Tab again to walk through the open files and tool windows. | Ctrl+Tab | Ctrl+Tab |
| Quick Switch SchemeOne popup for changing the theme, color scheme, keymap, view mode or layout without opening Settings. | Ctrl+` | Ctrl+` |
| Save AllForces a save of every modified file; WebStorm also saves on its own. | Ctrl+S | Cmd+S |
| Reload All from DiskBrings the IDE's caches in line with changes made to the files outside WebStorm. | Ctrl+Alt+Y | Cmd+Option+Y |
| New scratch fileCreates a temporary file kept outside the project; you pick its language next. | Ctrl+Alt+Shift+Insert | Cmd+Shift+N |
| New file or directoryIn the Project tool window, lists what can be added to the directory that is selected. | Alt+Insert | Cmd+N |
| Increase editor font sizeEnlarges the code font in every editor; the Mac keymap uses Ctrl with Shift. | Alt+Shift+. | Ctrl+Shift+. |
| Decrease editor font sizeMakes the code font smaller globally rather than in one tab only. | Alt+Shift+, | Ctrl+Shift+, |
| Zoom in the whole IDEScales the entire interface up, not just the editor text. | Alt+Shift+= | Ctrl+Option+= |
| Zoom out the whole IDEScales every interface element down together with the editor text. | Alt+Shift+- | Ctrl+Option+- |
| Reset IDE zoomReturns the interface scale to its default percentage. | Alt+Shift+0 | Ctrl+Option+0 |
| Next project windowCycles forward through the projects that are open in separate windows. | Ctrl+Alt+] | Cmd+Option+` |
| Previous project windowCycles backward through the open project windows. | Ctrl+Alt+[ | Cmd+Option+Shift+` |
| Open the main menuOpens the menu kept behind the hamburger icon of the window header on Windows and Linux. | Alt+\ | — |
| Focus the main toolbarPuts keyboard focus on the toolbar so its widgets can be reached without the mouse. | Alt+Page Up | Option+Page Up |
| Focus the status barPuts keyboard focus on the widgets of the status bar. | Alt+Page Down | Option+Page Down |
| Focus the editor gutterA two-step shortcut for screen readers; reading begins at the line that holds the caret. | Alt+Shift+6thenF | Option+Shift+6thenF |
Editing 35
Every keymap assumes a US English QWERTY layout. On a layout without a dedicated slash key, such as German, the Line Comment shortcut cannot be typed and needs another binding.
| Action | Windows / Linux | Mac |
|---|---|---|
| CopyCopying with no selection takes the whole line, which Paste then inserts above the caret's line. | Ctrl+C | Cmd+C |
| CutWith no selection the whole line is cut, ready to be pasted above another line. | Ctrl+X | Cmd+X |
| Paste | Ctrl+V | Cmd+V |
| Paste as plain textInserts the clipboard content as it is, without applying any formatting. | Ctrl+Alt+Shift+V | Cmd+Option+Shift+V |
| Paste from HistoryLists earlier clipboard entries so that an older copy can be picked. | Ctrl+Shift+V | Cmd+Shift+V |
| Copy ReferencePuts a reference to the symbol or line on the clipboard, line number included. | Ctrl+Alt+Shift+C | Cmd+Option+Shift+C |
| Copy PathPuts the path of the selected file or symbol on the clipboard. | Ctrl+Shift+C | Cmd+Shift+C |
| Undo | Ctrl+Z | Cmd+Z |
| RedoRedo is the Undo key plus Shift in both keymaps; Ctrl with Y deletes a line instead. | Ctrl+Shift+Z | Cmd+Shift+Z |
| Select All | Ctrl+A | Cmd+A |
| Extend SelectionEach press widens the selection to the next enclosing code construct. | Ctrl+W | Option+Up |
| Shrink SelectionSteps the selection back to the smaller construct it covered before. | Ctrl+Shift+W | Option+Down |
| Start New LineAdds a line below the current one and puts the caret on it. | Shift+Enter | Shift+Return |
| Start new line aboveInserts an empty line before the one the caret is on. | Ctrl+Alt+Enter | Cmd+Option+Return |
| Split LineThe help names this key for multi-line input in the debugger console, next to Shift + Enter. | Ctrl+Enter | Cmd+Return |
| Duplicate LineCopies the line at the caret right below itself. | Ctrl+D | Cmd+D |
| Delete LineRemoves the whole line at the caret; on a Mac the key is Cmd with Backspace. | Ctrl+Y | Cmd+Backspace |
| Join LinesPulls the following line up into the one the caret is on; the Mac keymap keeps Ctrl. | Ctrl+Shift+J | Ctrl+Shift+J |
| Move Line UpSwaps the line at the caret with the line above it. | Alt+Shift+Up | Option+Shift+Up |
| Move Line DownSwaps the line at the caret with the line below it. | Alt+Shift+Down | Option+Shift+Down |
| Move Statement UpCarries the whole statement at the caret above the preceding one. | Ctrl+Shift+Up | Cmd+Shift+Up |
| Move Statement DownCarries the whole statement at the caret below the following one. | Ctrl+Shift+Down | Cmd+Shift+Down |
| Move Element LeftSwaps a tag attribute in HTML or XML with the one on its left. | Ctrl+Alt+Shift+Left | Cmd+Option+Shift+Left |
| Move Element RightSwaps a tag attribute in HTML or XML with the one on its right. | Ctrl+Alt+Shift+Right | Cmd+Option+Shift+Right |
| Toggle CaseSwitches the selected fragment between capitals and small letters. | Ctrl+Shift+U | Cmd+Shift+U |
| Line CommentComments out the line at the caret; a second press on that line removes the comment. | Ctrl+/ | Cmd+/ |
| Block CommentWraps the selected fragment in a block comment, or unwraps it again. | Ctrl+Shift+/ | Cmd+Option+/ |
| Indent SelectionShifts the selected lines one indent level to the right. | Tab | Tab |
| Unindent SelectionShifts the current line or the selected lines one level to the left. | Shift+Tab | Shift+Tab |
| Auto-Indent LinesCorrects the indentation of the selected fragment and leaves other formatting alone. | Ctrl+Alt+I | Ctrl+Option+I |
| Reformat CodeApplies the configured code style to the current file or to the selection. | Ctrl+Alt+L | Cmd+Option+L |
| Reformat File dialogOpens a dialog with reformatting options, among them cleaning up the imports. | Ctrl+Alt+Shift+L | Cmd+Option+Shift+L |
| Optimize ImportsRemoves unused import statements and organizes the rest; Ctrl with Option on a Mac. | Ctrl+Alt+O | Ctrl+Option+O |
| Unwrap or removeOffers the unwrap and remove actions that fit the statement at the caret. | Ctrl+Shift+Delete | Cmd+Shift+Delete |
| Surround WithWraps the selected code in a construct picked from a popup. | Ctrl+Alt+T | Cmd+Option+T |
Code completion and generation 16
On macOS the Basic Completion key, Ctrl + Space, is also the system shortcut for selecting the previous input source, one of the known conflicts the help lists for the predefined keymaps.
| Action | Windows / Linux | Mac |
|---|---|---|
| Basic Code CompletionOpens the suggestion list for the names valid at the caret; a second press widens it. | Ctrl+Space | Ctrl+Space |
| Type-Matching CompletionHas to be called explicitly, like basic completion, when suggestions as you type are off. | Ctrl+Shift+Space | Ctrl+Shift+Space |
| Complete Current StatementAdds the missing parentheses, braces and semicolons so the construct becomes valid. | Ctrl+Shift+Enter | Cmd+Shift+Return |
| Cyclic Expand WordCompletes the typed prefix from words found above the caret, one candidate per press. | Alt+/ | Option+/ |
| Cyclic Expand Word (Backward)Takes its candidates from the text below the caret and from the other files that are open. | Alt+Shift+/ | Option+Shift+/ |
| Show Context ActionsLists quick-fixes for the highlighted problem and intention actions for the code at the caret. | Alt+Enter | Option+Return |
| Apply the suggested quick-fixApplies the fix offered in the problem tooltip, for example ESLint: Fix for the reported rule. | Alt+Shift+Enter | Option+Shift+Return |
| Parameter InfoShows which arguments the function takes while the caret is inside its call. | Ctrl+P | Cmd+P |
| Quick DocumentationShows the reference for the symbol at the caret in a popup; the Mac key is F1. | Ctrl+Q | F1 |
| Quick DefinitionPreviews where and how the symbol is defined, without opening its file. | Ctrl+Shift+I | Option+Space |
| Context InfoShows which declaration the caret is in when that header is outside the visible part of the editor. | Alt+Q | Ctrl+Shift+Q |
| GenerateLists the code constructs that can be generated at the caret. | Alt+Insert | Cmd+N |
| Override MethodsOffers the methods of the parent class that can be overridden; same key on a Mac. | Ctrl+O | Ctrl+O |
| Implement MethodsCreates stubs for the members of an interface that the class lacks. | Ctrl+I | Ctrl+I |
| Insert Live TemplateLists the live templates available here, as an alternative to typing an abbreviation. | Ctrl+J | Cmd+J |
| Surround with Live TemplateWraps the selected block in a template chosen from the list. | Ctrl+Alt+J | Cmd+Option+J |
Code folding 10
| Action | Windows / Linux | Mac |
|---|---|---|
| Expand Code BlockUnfolds the collapsed fragment at the caret. | Ctrl+Num + | Cmd+Num + |
| Collapse Code BlockFolds the fragment at the caret, for example a block between matching braces. | Ctrl+Num - | Cmd+Num - |
| Expand AllUnfolds 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 - |
| Expand recursivelyUnfolds the fragment at the caret together with everything nested in it. | Ctrl+Alt+Num + | Cmd+Option+Num + |
| Collapse recursivelyFolds the fragment at the caret and all fragments nested inside it. | Ctrl+Alt+Num - | Cmd+Option+Num - |
| Fold selectionCollapses the selected code as a custom fragment; the same key opens it again. | Ctrl+. | Cmd+. |
| Expand to level 1Press the shortcut, then a digit from 1 to 5 for the nesting depth to open. | Ctrl+Num *then1 | Cmd+Num *then1 |
| Expand all to level 1Applies the chosen nesting depth to the whole file instead of one fragment. | Ctrl+Shift+Num *then1 | Cmd+Option+Num *then1 |
| Go to custom folding regionJumps to a custom region that was created in the file. | Ctrl+Alt+. | Cmd+Option+. |
Multiple carets 12
| Action | Windows / Linux | Mac |
|---|---|---|
| Add or remove caretClick a new spot to add a caret; click one of the extra carets to remove it. | Alt+Click | Option+Click |
| Add caret above or belowTap the modifier twice, keep it held on the second tap, then use the arrow keys. | CtrlthenCtrl+UporCtrlthenCtrl+Down | OptionthenOption+UporOptionthenOption+Down |
| Select Next OccurrenceEach press selects the next case-sensitive match and puts a caret on it. | Alt+J | Ctrl+G |
| Unselect OccurrenceDrops the occurrence that was added last from the multi-selection. | Alt+Shift+J | Ctrl+Shift+G |
| Select All OccurrencesSelects every case-sensitive match in the document, with a caret on each. | Ctrl+Alt+Shift+J | Cmd+Ctrl+G |
| Add carets to line endsPuts a caret at the end of every line of the selected block. | Alt+Shift+G | Option+Shift+G |
| Column Selection ModeSwitches the editor between rectangular selection and normal line selection. | Alt+Shift+Insert | Cmd+Shift+8 |
| Add caret above in column modeWith column selection mode on, extends the caret column one line up. | Shift+Up | Shift+Up |
| Add caret below in column modeWith column selection mode on, extends the caret column one line down. | Shift+Down | Shift+Down |
| Rectangular selection with the mouseHold the keys while dragging to select a rectangle of text instead of whole lines. | Alt+Shift+Drag | Option+Shift+Drag |
| Rectangular selection to click pointSelects the rectangle between the caret and the corner you middle-click. | Alt+Shift+Middle-click | Option+Shift+Middle-click |
| Add another rectangular selectionEach drag adds a separate rectangle, so several ranges stay selected at once. | Ctrl+Alt+Shift+Drag | Cmd+Option+Shift+Drag |
Bookmarks 7
| Action | Windows / Linux | Mac |
|---|---|---|
| Toggle BookmarkAdds an anonymous bookmark on the caret's line, or removes it; F3 on a Mac. | F11 | F3 |
| Bookmark with MnemonicOpens a popup in which you pick the digit or letter that identifies the bookmark. | Ctrl+F11 | Option+F3 |
| Go to Numbered BookmarkHold Ctrl and press the digit of a mnemonic bookmark; letter bookmarks have no default key. | Ctrl+0-9 | Ctrl+0-9 |
| Show Line BookmarksLists the line bookmarks set in code so that you can jump to one. | Shift+F11 | Cmd+F3 |
| Bookmarks tool windowShows every bookmark grouped in lists; also holds the breakpoints list. | Alt+2 | Cmd+2 |
| Next bookmarkJumps onward to the bookmark that comes after the current one. | Ctrl+Alt+Down | Cmd+Option+Down |
| Previous bookmarkGoes back to the bookmark that comes before the current one. | Ctrl+Alt+Up | Cmd+Option+Up |
Search and replace 13
| Action | Windows / Linux | Mac |
|---|---|---|
| FindOpens the search bar of the current file. | Ctrl+F | Cmd+F |
| Find NextMoves to the next search result in the file, or to the next highlighted usage. | F3 | Cmd+G |
| Find PreviousMoves back to the search result or highlighted usage before the current one. | Shift+F3 | Cmd+Shift+G |
| ReplaceOpens the bar for replacing matches within the current file. | Ctrl+R | Cmd+R |
| Find in FilesSearches a string across the project or a narrower scope set in the dialog. | Ctrl+Shift+F | Cmd+Shift+F |
| Replace in FilesOpens the project-wide replace dialog, titled Replace in Path. | Ctrl+Shift+R | Cmd+Shift+R |
| Show search historyLists the queries you ran before in the Find in Files dialog. | Alt+Down | Option+Down |
| Next occurrence of word at caretJumps to the next place where the word under the caret occurs; the macOS keymap has no key for it. | Ctrl+F3 | — |
| Find UsagesCollects the usages of the element at the caret in the Find tool window. | Alt+F7 | Option+F7 |
| Find Usages in FileLimits the usage search to the file that is open and highlights the results. | Ctrl+F7 | Cmd+F7 |
| Highlight Usages in FileMarks every usage of the symbol in the file; the same key clears the marks. | Ctrl+Shift+F7 | Cmd+Shift+F7 |
| Show UsagesLists the usages in a popup instead of the Find tool window. | Ctrl+Alt+F7 | Cmd+Option+F7 |
| Find Usages settingsOpens the dialog where the scope and other options of the usage search are set. | Ctrl+Alt+Shift+F7 | Cmd+Option+Shift+F7 |
Refactoring 12
| Action | Windows / Linux | Mac |
|---|---|---|
| Refactor ThisLists the refactorings that apply at the caret; Ctrl with T on a Mac. | Ctrl+Alt+Shift+T | Ctrl+T |
| RenameRenames a class, function or variable together with its usages. | Shift+F6 | Shift+F6 |
| Change SignatureEdits the name and parameters of a function and updates its calls. | Ctrl+F6 | Cmd+F6 |
| MoveIn the editor it moves a class, function or variable; in the Project view, a file or folder. | F6 | F6 |
| CopyCopies the file or folder selected in the Project view to another location. | F5 | F5 |
| Safe DeleteDeletes a file only after checking that nothing references it. | Alt+Delete | Cmd+Delete |
| InlineReplaces the usages of the symbol at the caret with its definition. | Ctrl+Alt+N | Cmd+Option+N |
| Extract MethodTurns the selected code into a new function. | Ctrl+Alt+M | Cmd+Option+M |
| Introduce VariableReplaces the selected expression with a new variable. | Ctrl+Alt+V | Cmd+Option+V |
| Introduce ConstantReplaces the selected expression with a new constant. | Ctrl+Alt+C | Cmd+Option+C |
| Introduce FieldReplaces the selected expression with a new class field. | Ctrl+Alt+F | Cmd+Option+F |
| Introduce ParameterMakes the expression at the caret a new parameter of the enclosing function. | Ctrl+Alt+P | Cmd+Option+P |
Running and testing 12
| Action | Windows / Linux | Mac |
|---|---|---|
| RunStarts the configuration selected in the Run widget; Ctrl with R on a Mac. | Shift+F10 | Ctrl+R |
| DebugStarts the current configuration under the debugger; Ctrl with D on a Mac. | Shift+F9 | Ctrl+D |
| Select Configuration and RunOpens a popup of run configurations to choose from. | Alt+Shift+F10 | Ctrl+Option+R |
| Select Configuration and DebugThe same popup, but the chosen configuration starts in debug mode. | Alt+Shift+F9 | Ctrl+Option+D |
| Run Context ConfigurationRuns the test that the caret is in, using a temporary run configuration. | Ctrl+Shift+F10 | Ctrl+Shift+R |
| StopEnds the running process; with several running, you pick which one. | Ctrl+F2 | Cmd+F2 |
| RerunRuns the whole test session again. | Ctrl+F5 | Cmd+R |
| Rerun TestsRepeats the tests of the scope that was run last, as the Vitest topic describes it. | Alt+Shift+R | Cmd+Ctrl+R |
| Next failed testMoves to the following failed test in the Test Runner tab. | Ctrl+Alt+Down | Cmd+Option+Down |
| Previous failed testMoves to the failed test before the current one in the Test Runner tab. | Ctrl+Alt+Up | Cmd+Option+Up |
| Go to TestJumps from a source file to its test; from a test, the same key opens the test subject. | Ctrl+Shift+T | Cmd+Shift+T |
| Show Code Coverage DataReopens the Coverage tool window with the collected report. | Ctrl+Alt+F6 | Cmd+Option+F6 |
Debugging 17
| Action | Windows / Linux | Mac |
|---|---|---|
| Step OverRuns the current line and stops at the next one without entering the functions it calls. | F8 | F8 |
| Step IntoEnters the function that is called on the current line. | F7 | F7 |
| Smart Step IntoLets you choose which of several calls on the line to enter. | Shift+F7 | Shift+F7 |
| Step OutFinishes the current function and returns to the line that called it. | Shift+F8 | Shift+F8 |
| Run to CursorContinues until execution reaches the line the caret is on. | Alt+F9 | Option+F9 |
| Force Step OverSteps over the line and ignores breakpoints inside the functions it calls. | Alt+Shift+F8 | Option+Shift+F8 |
| Force Step IntoEnters a function even when regular stepping would skip it. | Alt+Shift+F7 | Option+Shift+F7 |
| Force Run to CursorRuns to the caret line and ignores any breakpoints on the way. | Ctrl+Alt+F9 | Cmd+Option+F9 |
| Resume ProgramContinues a paused session; on a Mac the key is Cmd with Option and R. | F9 | Cmd+Option+R |
| Toggle BreakpointSets or removes a line breakpoint on the line with the caret. | Ctrl+F8 | Cmd+F8 |
| Toggle temporary breakpointSets a breakpoint that disappears as soon as it has been hit once. | Ctrl+Alt+Shift+F8 | Cmd+Option+Shift+F8 |
| View BreakpointsOpens the Breakpoints dialog, where all breakpoints are listed and configured. | Ctrl+Shift+F8 | Cmd+Shift+F8 |
| Evaluate ExpressionOpens the Evaluate dialog; the help warns that the key may not work on Ubuntu. | Alt+F8 | Option+F8 |
| Quick Evaluate ExpressionShows the value of the expression selected in the editor. | Ctrl+Alt+F8 | Cmd+Option+F8 |
| Show Execution PointBrings the editor back to the line where the program is paused. | Alt+F10 | Option+F10 |
| Set ValueChanges the value of the variable selected in the Variables pane. | F2 | F2 |
| Debug the app from its URLClick the localhost address an app prints in the Run tool window or Terminal to debug it in the browser. | Ctrl+Shift+Click | Cmd+Shift+Click |
Version control 18
| Action | Windows / Linux | Mac |
|---|---|---|
| VCS Operations PopupLists the Git commands available in the current context; Ctrl with V on a Mac. | Alt+` | Ctrl+V |
| CommitOpens the Commit tool window with the whole active changelist selected. | Ctrl+K | Cmd+K |
| Commit and PushPushes to the remote repository right after the commit is made. | Ctrl+Alt+K | Cmd+Option+K |
| PushSends the commits of the current branch to the remote. | Ctrl+Shift+K | Cmd+Shift+K |
| Update ProjectSyncs the project with its remote Git repository. | Ctrl+T | Cmd+T |
| RollbackReverts the selected files to the last committed state. | Ctrl+Alt+Z | Cmd+Option+Z |
| Stage fileWith the Git staging area enabled in Settings, stages the whole selected file. | Ctrl+Alt+A | Cmd+Option+A |
| Show DiffCompares the selected file with its repository version in the diff viewer. | Ctrl+D | Cmd+D |
| Shelve SilentlyShelves the selected changes without showing the Shelve Changes dialog. | Ctrl+Shift+H | Cmd+Shift+H |
| UnshelveOpens the dialog for restoring the selected shelved changes. | Ctrl+Shift+U | Cmd+Shift+U |
| Unshelve SilentlyRestores the selected shelved changes without a dialog. | Ctrl+Alt+U | Cmd+Option+U |
| Recent ChangesLists the changes made to the project recently. | Alt+Shift+C | Option+Shift+C |
| Next ChangeMoves the caret to the next changed fragment in the editor. | Ctrl+Alt+Shift+Down | Ctrl+Option+Shift+Down |
| Previous ChangeMoves the caret to the changed fragment before the current one. | Ctrl+Alt+Shift+Up | Ctrl+Option+Shift+Up |
| Next DifferenceJumps to the following changed block in the diff viewer. | F7 | F7 |
| Previous DifferenceJumps to the changed block before the current one in the diff viewer. | Shift+F7 | Shift+F7 |
| Switch diff panesMoves focus from one side of the diff viewer to the other. | Ctrl+Shift+Tab | Ctrl+Shift+Tab |
| Diff commands popupLists the most commonly used commands of the diff viewer. | Ctrl+Shift+D | Cmd+Shift+D |
Tool windows 23
| Action | Windows / Linux | Mac |
|---|---|---|
| Project tool windowEach of the numbered keys both shows and hides its tool window. | Alt+1 | Cmd+1 |
| Commit tool windowOpens the list of local changes and the commit controls. | Alt+0 | Cmd+0 |
| Find tool windowReopens the results of the last usage or text search. | Alt+3 | Cmd+3 |
| Run tool windowShows the output of the running configuration. | Alt+4 | Cmd+4 |
| Debug tool windowShows the frames, variables and console of the debug session. | Alt+5 | Cmd+5 |
| Problems tool windowLists the problems that inspections found in the file and the project. | Alt+6 | Cmd+6 |
| Structure tool windowShows the structure of the file that is open in the editor. | Alt+7 | Cmd+7 |
| Services tool windowGroups run configurations, Docker and database sessions in one place. | Alt+8 | Cmd+8 |
| Git tool windowHolds the Log tab with the commit history of the repository. | Alt+9 | Cmd+9 |
| Terminal tool windowOpens the built-in terminal in the project directory. | Alt+F12 | Option+F12 |
| New terminal tabStarts another shell session in a separate tab; Cmd with T on a Mac. | Ctrl+Shift+T | Cmd+T |
| Back to last tool windowReturns from the editor to the tool window you used most recently. | F12 | F12 |
| Go to EditorLeaves the tool window and puts the caret back where it was in the code. | Esc | Esc |
| Hide Active Tool WindowHides the tool window that has focus. | Shift+Esc | Shift+Esc |
| Hide All Tool WindowsHides every tool window so that only the editor remains, which the help calls maximizing the editor. | Ctrl+Shift+F12 | Cmd+Shift+F12 |
| Maximize Tool WindowStretches the active tool window to its maximum width or height. | Ctrl+Shift+' | Cmd+Shift+' |
| Stretch tool window to the leftThe Mac keymap uses Ctrl with Option and the arrow, without Shift. | Ctrl+Alt+Shift+Left | Ctrl+Option+Left |
| Stretch tool window to the rightResizes a vertical tool window horizontally. | Ctrl+Alt+Shift+Right | Ctrl+Option+Right |
| Stretch tool window to the topResizes a horizontal tool window vertically. | Ctrl+Alt+Shift+Up | Ctrl+Option+Up |
| Stretch tool window to the bottomMoves the border of a horizontal tool window downward. | Ctrl+Alt+Shift+Down | Ctrl+Option+Down |
| Restore Default LayoutPuts all tool windows back where the Default layout has them. | Shift+F12 | Shift+F12 |
| Close active tabCloses the current tab of a tool window such as Run, ending its process. | Ctrl+Shift+F4 | Ctrl+Shift+F4 |
| Preview fileShows the file selected in the Project tool window in a popup. | Space | Space |
JavaScript and web tools 10
| Action | Windows / Linux | Mac |
|---|---|---|
| Run npm script from package.jsonWith package.json open, starts a script without the gutter icon; its output appears in the Run tool window. | Ctrl+Shift+F10 | Ctrl+Shift+R |
| Reformat with PrettierFormats the file or selection with Prettier instead of the IDE formatter. | Ctrl+Alt+Shift+P | Cmd+Option+Shift+P |
| Open in BrowserOpens the current HTML file in the browser; with several configured, you choose one. | Alt+F2 | Option+F2 |
| Toggle Rendered ViewSwitches a JSDoc comment between its source and a rendered, readable form. | Ctrl+Alt+Q | Ctrl+Option+Q |
| External DocumentationOpens the MDN article for the symbol at the caret in the browser. | Shift+F1 | Shift+F1 |
| Expand Emmet abbreviationTurns a typed abbreviation into markup; another expansion key can be set in the Emmet settings. | Tab | Tab |
| Next Emmet Edit PointMoves the caret to the next place in the markup where Emmet expects input. | Alt+Shift+] | Ctrl+Option+Right |
| Previous Emmet Edit PointMoves the caret back to the preceding Emmet edit point. | Alt+Shift+[ | Ctrl+Option+Left |
| Related SymbolJumps between the template, class and style sheet of a component. | Ctrl+Alt+Home | Cmd+Ctrl+Up |
| Open image in external editorOpens the image file in the program your operating system uses for it by default. | Ctrl+Alt+F4 | Cmd+Option+F4 |
Markdown editing 5
| Action | Windows / Linux | Mac |
|---|---|---|
| BoldFormats the text selected in a Markdown file as bold. | Ctrl+B | Cmd+B |
| ItalicFormats the selected Markdown text as italic. | Ctrl+I | Cmd+I |
| StrikethroughStrikes through the selected Markdown text. | Ctrl+Shift+S | Cmd+Shift+S |
| CodeMarks the selected Markdown text as inline code. | Ctrl+Shift+C | Cmd+Shift+C |
| Create LinkTurns the selected Markdown text into a link. | Ctrl+Shift+U | Cmd+Shift+U |
No row on this page matches that filter.
Notes
Moving around a JavaScript or TypeScript project
Pressing Shift twice opens Search Everywhere, which the help offers as the counterpart of the VS Code Command Palette; Tab inside it narrows the search to classes, files, symbols or actions. Ctrl + Shift + N goes to a file by name and Ctrl + Alt + Shift + N to a function, variable or other symbol. From a usage, Ctrl + B reaches the declaration and Ctrl + Shift + B the declaration of its type, while Ctrl + Alt + Home moves between the template, class and style sheet of a component. Ctrl + Shift + M jumps between the two braces of a block, and Ctrl + F12 pops up the members of the file. For reference material, Ctrl + Q on a package name in package.json or an import shows its documentation, and Shift + F1 sends you to the MDN article for a symbol, or to the npm site for a package. With the macOS keymap: Cmd + Shift + O, Cmd + Option + O, Cmd + B, Cmd + Shift + B, Cmd + Ctrl + Up, Ctrl + M, Cmd + F12 and F1.
Formatting, linting and markup
Ctrl + Alt + L applies the IDE's code style, or Prettier for file types where Prettier is set as the default formatter; Ctrl + Alt + Shift + P calls Prettier on the file or selection directly. When ESLint flags a line, Alt + Shift + Enter applies the ESLint: Fix suggestion for that rule, whereas Alt + Enter opens the wider menu of fixes and context actions at the caret. In HTML, CSS and JSX, Tab expands an Emmet abbreviation, and Alt + Shift + ] and Alt + Shift + [ hop between the places where the generated markup still needs input. Alt + F2 previews an HTML file in a browser, and Ctrl + Alt + Q switches a JSDoc comment between its source and a rendered view. Mac keys: Cmd + Option + L, Cmd + Option + Shift + P, Option + Shift + Return, Ctrl + Option + Right, Ctrl + Option + Left, Option + F2 and Ctrl + Option + Q.
Several carets at once
Alt + J selects the next case-sensitive match of the word and puts a caret on it, Alt + Shift + J gives back the one added last, and Ctrl + Alt + Shift + J takes every match in the document in one go; on a Mac the trio is Ctrl + G, Ctrl + Shift + G and Cmd + Ctrl + G. Alt + Shift + G places a caret at the end of each selected line, and Alt-clicking adds or removes single carets. Ctrl + W grows the selection one code construct at a time and Ctrl + Shift + W shrinks it back, which the macOS keymap puts on Option + Up and Option + Down.
npm scripts, tests and debugging
In package.json each script has a Run icon in the gutter, and Ctrl + Shift + F10 starts one from the keyboard. Ctrl pressed twice opens Run Anything, where typing the name of a package manager or a script starts it, and Show npm Scripts in the context menu of package.json lists them all in the npm tool window. In a test file the same key runs the test holding the caret, Alt + Shift + R repeats the scope that ran last, and Ctrl + Alt + Down walks through the failures on the Test Runner tab. Shift + F9 debugs the selected configuration, Node.js or browser alike, Shift + F7 picks which call on a line to enter, and Alt + F8 evaluates an expression. When a dev server prints its localhost address in the Terminal or the Run tool window, Ctrl + Shift + Click on that link opens a JavaScript debugging session. The macOS keymap uses Ctrl + Shift + R, Cmd + Ctrl + R, Cmd + Option + Down, Ctrl + D, Option + F8 and Cmd + Shift + Click.
Questions
Do WebStorm shortcuts match VS Code?
Not by default. Settings › Keymap has a VSCode keymap, and VSCode (macOS) for a Mac, for people who want their old bindings back. The default JetBrains keymap is worth learning, as the help points out, because almost every JetBrains IDE shares it.
How do I select all occurrences of a variable?
Ctrl + Alt + Shift + J (Cmd + Ctrl + G on a Mac) puts a caret on every case-sensitive match in the document. To grow the selection match by match, press Alt + J (Ctrl + G) repeatedly.
How do I run an npm script?
Open package.json and click the gutter icon beside the script, or press Ctrl + Shift + F10 with the file open; the Mac key is Ctrl + Shift + R. The output appears in the Run tool window. Run Anything, opened by pressing Ctrl twice, starts a script when you type its name.
How do I run a single Jest test?
Use the Run icon in the gutter next to the test and choose Run, or place the caret inside the test and press Ctrl + Shift + F10. For snapshot tests, the camera icon in the gutter opens the related snapshot, and an outdated snapshot can be updated from the Test Runner tab of the Run tool window.
How do I fix an ESLint error from the keyboard?
With the caret on the highlighted code, Alt + Shift + Enter (Option + Shift + Return on a Mac) applies ESLint: Fix for the reported rule. To have ESLint repair problems whenever you save, tick Run eslint --fix on save in the ESLint settings under Code Quality Tools.
Do the Windows shortcuts work on Ubuntu?
Mostly, since the help applies the Windows table to Linux as well, yet Ubuntu claims a few chords for itself. Ctrl + Alt + Left and Right switch workspaces instead of navigating back and forward, Ctrl + Alt + F12 opens a virtual console instead of the file path popup, and Alt + F7 moves the window instead of finding usages. Rebind those in Settings › Keymap, or look on the Plugins Marketplace for GNOME and KDE keymaps.
Sources and checks
- JetBrains — WebStorm 2026.2 Help: WebStorm keyboard shortcuts The help's table of most useful shortcuts and its notes on predefined keymaps; both columns
- JetBrains — WebStorm 2026.2 Help: Index of menu items Menu commands with their shortcuts, the table the help says applies to Windows and Linux; both columns
- JetBrains — WebStorm 2026.2 Help: Editor basics Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Project tool window Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: IDE zoom level Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: New UI Windows / Linux and Mac keys printed on this help topic
39 more source pages
- JetBrains — WebStorm 2026.2 Help: Accessibility Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Write and edit source code Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Using interactive Debugger Console Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Reformat code Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Generate code Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Code completion Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Advanced completion Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: ESLint Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Emmet Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Multiple cursors and selection ranges Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Source code navigation Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Recent files and changes Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Tool windows Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Bookmarks Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Search for a target within a file Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Search for usages Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Search for a target within a project Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Code refactoring Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Refactoring JavaScript Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Running Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Test Runner tab Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Vitest Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Step through the program Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Breakpoints Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Examine suspended program Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Run tool window Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Main version control shortcuts Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Commit and push changes to Git repository Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Shelve or stash changes Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Diff Viewer for files Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Terminal Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Arrange tool windows Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: npm, pnpm, and Yarn Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Prettier Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: HTML Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: JSDoc comments Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: JavaScript documentation look-up Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Markdown Windows / Linux and Mac keys printed on this help topic
- JetBrains — WebStorm 2026.2 Help: Troubleshooting Known conflicts with system shortcuts and the keyboard layout note (table notes)
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.
8 rows from the earlier version of this page were removed in that check: duplicates, and bindings the documentation does not list or lists differently.
Found a wrong or missing key? Tell us and it gets checked against the source. How we verify describes the process and its limits.