WebStorm keyboard shortcuts for Windows, Linux and Mac

WebStorm 2026.2 bindings gathered from the topic pages of the WebStorm help, which has no single keymap table. Windows keys, which the help's menu index also applies to Linux, sit on the left and macOS keys on the right. JavaScript and TypeScript work shows in rows for npm scripts, Prettier, ESLint fixes, Emmet, JSDoc and debugging a page in the browser, while optional keymaps such as VS Code or Eclipse are omitted. On a Mac, Run is Ctrl + R rather than a Cmd chord.

249 shortcuts in 15 sections. Checked row by row against JetBrains on . Edited by Jay.

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.

ActionWindows / LinuxMac
Search EverywherePress Shift twice to look up files, classes, symbols, actions and settings from one popup.ShiftthenShiftShiftthenShift
Find ActionLooks up any command, tool window or setting by name and runs it straight from the list.Ctrl+Shift+ACmd+Shift+A
Run AnythingPress Ctrl twice to start run configurations, npm or yarn scripts and recent projects by name.CtrlthenCtrlCtrlthenCtrl
Open SettingsOpens the Settings dialog; its Keymap page shows every binding and lets you reassign it.Ctrl+Alt+SCmd+,
SwitcherKeep Ctrl held and press Tab again to walk through the open files and tool windows.Ctrl+TabCtrl+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+SCmd+S
Reload All from DiskBrings the IDE's caches in line with changes made to the files outside WebStorm.Ctrl+Alt+YCmd+Option+Y
New scratch fileCreates a temporary file kept outside the project; you pick its language next.Ctrl+Alt+Shift+InsertCmd+Shift+N
New file or directoryIn the Project tool window, lists what can be added to the directory that is selected.Alt+InsertCmd+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+0Ctrl+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 UpOption+Page Up
Focus the status barPuts keyboard focus on the widgets of the status bar.Alt+Page DownOption+Page Down
Focus the editor gutterA two-step shortcut for screen readers; reading begins at the line that holds the caret.Alt+Shift+6thenFOption+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.

ActionWindows / LinuxMac
CopyCopying with no selection takes the whole line, which Paste then inserts above the caret's line.Ctrl+CCmd+C
CutWith no selection the whole line is cut, ready to be pasted above another line.Ctrl+XCmd+X
PasteCtrl+VCmd+V
Paste as plain textInserts the clipboard content as it is, without applying any formatting.Ctrl+Alt+Shift+VCmd+Option+Shift+V
Paste from HistoryLists earlier clipboard entries so that an older copy can be picked.Ctrl+Shift+VCmd+Shift+V
Copy ReferencePuts a reference to the symbol or line on the clipboard, line number included.Ctrl+Alt+Shift+CCmd+Option+Shift+C
Copy PathPuts the path of the selected file or symbol on the clipboard.Ctrl+Shift+CCmd+Shift+C
UndoCtrl+ZCmd+Z
RedoRedo is the Undo key plus Shift in both keymaps; Ctrl with Y deletes a line instead.Ctrl+Shift+ZCmd+Shift+Z
Select AllCtrl+ACmd+A
Extend SelectionEach press widens the selection to the next enclosing code construct.Ctrl+WOption+Up
Shrink SelectionSteps the selection back to the smaller construct it covered before.Ctrl+Shift+WOption+Down
Start New LineAdds a line below the current one and puts the caret on it.Shift+EnterShift+Return
Start new line aboveInserts an empty line before the one the caret is on.Ctrl+Alt+EnterCmd+Option+Return
Split LineThe help names this key for multi-line input in the debugger console, next to Shift + Enter.Ctrl+EnterCmd+Return
Duplicate LineCopies the line at the caret right below itself.Ctrl+DCmd+D
Delete LineRemoves the whole line at the caret; on a Mac the key is Cmd with Backspace.Ctrl+YCmd+Backspace
Join LinesPulls the following line up into the one the caret is on; the Mac keymap keeps Ctrl.Ctrl+Shift+JCtrl+Shift+J
Move Line UpSwaps the line at the caret with the line above it.Alt+Shift+UpOption+Shift+Up
Move Line DownSwaps the line at the caret with the line below it.Alt+Shift+DownOption+Shift+Down
Move Statement UpCarries the whole statement at the caret above the preceding one.Ctrl+Shift+UpCmd+Shift+Up
Move Statement DownCarries the whole statement at the caret below the following one.Ctrl+Shift+DownCmd+Shift+Down
Move Element LeftSwaps a tag attribute in HTML or XML with the one on its left.Ctrl+Alt+Shift+LeftCmd+Option+Shift+Left
Move Element RightSwaps a tag attribute in HTML or XML with the one on its right.Ctrl+Alt+Shift+RightCmd+Option+Shift+Right
Toggle CaseSwitches the selected fragment between capitals and small letters.Ctrl+Shift+UCmd+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.TabTab
Unindent SelectionShifts the current line or the selected lines one level to the left.Shift+TabShift+Tab
Auto-Indent LinesCorrects the indentation of the selected fragment and leaves other formatting alone.Ctrl+Alt+ICtrl+Option+I
Reformat CodeApplies the configured code style to the current file or to the selection.Ctrl+Alt+LCmd+Option+L
Reformat File dialogOpens a dialog with reformatting options, among them cleaning up the imports.Ctrl+Alt+Shift+LCmd+Option+Shift+L
Optimize ImportsRemoves unused import statements and organizes the rest; Ctrl with Option on a Mac.Ctrl+Alt+OCtrl+Option+O
Unwrap or removeOffers the unwrap and remove actions that fit the statement at the caret.Ctrl+Shift+DeleteCmd+Shift+Delete
Surround WithWraps the selected code in a construct picked from a popup.Ctrl+Alt+TCmd+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.

ActionWindows / LinuxMac
Basic Code CompletionOpens the suggestion list for the names valid at the caret; a second press widens it.Ctrl+SpaceCtrl+Space
Type-Matching CompletionHas to be called explicitly, like basic completion, when suggestions as you type are off.Ctrl+Shift+SpaceCtrl+Shift+Space
Complete Current StatementAdds the missing parentheses, braces and semicolons so the construct becomes valid.Ctrl+Shift+EnterCmd+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+EnterOption+Return
Apply the suggested quick-fixApplies the fix offered in the problem tooltip, for example ESLint: Fix for the reported rule.Alt+Shift+EnterOption+Shift+Return
Parameter InfoShows which arguments the function takes while the caret is inside its call.Ctrl+PCmd+P
Quick DocumentationShows the reference for the symbol at the caret in a popup; the Mac key is F1.Ctrl+QF1
Quick DefinitionPreviews where and how the symbol is defined, without opening its file.Ctrl+Shift+IOption+Space
Context InfoShows which declaration the caret is in when that header is outside the visible part of the editor.Alt+QCtrl+Shift+Q
GenerateLists the code constructs that can be generated at the caret.Alt+InsertCmd+N
Override MethodsOffers the methods of the parent class that can be overridden; same key on a Mac.Ctrl+OCtrl+O
Implement MethodsCreates stubs for the members of an interface that the class lacks.Ctrl+ICtrl+I
Insert Live TemplateLists the live templates available here, as an alternative to typing an abbreviation.Ctrl+JCmd+J
Surround with Live TemplateWraps the selected block in a template chosen from the list.Ctrl+Alt+JCmd+Option+J

Code folding 10

ActionWindows / LinuxMac
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 *then1Cmd+Num *then1
Expand all to level 1Applies the chosen nesting depth to the whole file instead of one fragment.Ctrl+Shift+Num *then1Cmd+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

ActionWindows / LinuxMac
Add or remove caretClick a new spot to add a caret; click one of the extra carets to remove it.Alt+ClickOption+Click
Add caret above or belowTap the modifier twice, keep it held on the second tap, then use the arrow keys.CtrlthenCtrl+UporCtrlthenCtrl+DownOptionthenOption+UporOptionthenOption+Down
Select Next OccurrenceEach press selects the next case-sensitive match and puts a caret on it.Alt+JCtrl+G
Unselect OccurrenceDrops the occurrence that was added last from the multi-selection.Alt+Shift+JCtrl+Shift+G
Select All OccurrencesSelects every case-sensitive match in the document, with a caret on each.Ctrl+Alt+Shift+JCmd+Ctrl+G
Add carets to line endsPuts a caret at the end of every line of the selected block.Alt+Shift+GOption+Shift+G
Column Selection ModeSwitches the editor between rectangular selection and normal line selection.Alt+Shift+InsertCmd+Shift+8
Add caret above in column modeWith column selection mode on, extends the caret column one line up.Shift+UpShift+Up
Add caret below in column modeWith column selection mode on, extends the caret column one line down.Shift+DownShift+Down
Rectangular selection with the mouseHold the keys while dragging to select a rectangle of text instead of whole lines.Alt+Shift+DragOption+Shift+Drag
Rectangular selection to click pointSelects the rectangle between the caret and the corner you middle-click.Alt+Shift+Middle-clickOption+Shift+Middle-click
Add another rectangular selectionEach drag adds a separate rectangle, so several ranges stay selected at once.Ctrl+Alt+Shift+DragCmd+Option+Shift+Drag

Bookmarks 7

ActionWindows / LinuxMac
Toggle BookmarkAdds an anonymous bookmark on the caret's line, or removes it; F3 on a Mac.F11F3
Bookmark with MnemonicOpens a popup in which you pick the digit or letter that identifies the bookmark.Ctrl+F11Option+F3
Go to Numbered BookmarkHold Ctrl and press the digit of a mnemonic bookmark; letter bookmarks have no default key.Ctrl+0-9Ctrl+0-9
Show Line BookmarksLists the line bookmarks set in code so that you can jump to one.Shift+F11Cmd+F3
Bookmarks tool windowShows every bookmark grouped in lists; also holds the breakpoints list.Alt+2Cmd+2
Next bookmarkJumps onward to the bookmark that comes after the current one.Ctrl+Alt+DownCmd+Option+Down
Previous bookmarkGoes back to the bookmark that comes before the current one.Ctrl+Alt+UpCmd+Option+Up

Search and replace 13

ActionWindows / LinuxMac
FindOpens the search bar of the current file.Ctrl+FCmd+F
Find NextMoves to the next search result in the file, or to the next highlighted usage.F3Cmd+G
Find PreviousMoves back to the search result or highlighted usage before the current one.Shift+F3Cmd+Shift+G
ReplaceOpens the bar for replacing matches within the current file.Ctrl+RCmd+R
Find in FilesSearches a string across the project or a narrower scope set in the dialog.Ctrl+Shift+FCmd+Shift+F
Replace in FilesOpens the project-wide replace dialog, titled Replace in Path.Ctrl+Shift+RCmd+Shift+R
Show search historyLists the queries you ran before in the Find in Files dialog.Alt+DownOption+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+F7Option+F7
Find Usages in FileLimits the usage search to the file that is open and highlights the results.Ctrl+F7Cmd+F7
Highlight Usages in FileMarks every usage of the symbol in the file; the same key clears the marks.Ctrl+Shift+F7Cmd+Shift+F7
Show UsagesLists the usages in a popup instead of the Find tool window.Ctrl+Alt+F7Cmd+Option+F7
Find Usages settingsOpens the dialog where the scope and other options of the usage search are set.Ctrl+Alt+Shift+F7Cmd+Option+Shift+F7

Refactoring 12

ActionWindows / LinuxMac
Refactor ThisLists the refactorings that apply at the caret; Ctrl with T on a Mac.Ctrl+Alt+Shift+TCtrl+T
RenameRenames a class, function or variable together with its usages.Shift+F6Shift+F6
Change SignatureEdits the name and parameters of a function and updates its calls.Ctrl+F6Cmd+F6
MoveIn the editor it moves a class, function or variable; in the Project view, a file or folder.F6F6
CopyCopies the file or folder selected in the Project view to another location.F5F5
Safe DeleteDeletes a file only after checking that nothing references it.Alt+DeleteCmd+Delete
InlineReplaces the usages of the symbol at the caret with its definition.Ctrl+Alt+NCmd+Option+N
Extract MethodTurns the selected code into a new function.Ctrl+Alt+MCmd+Option+M
Introduce VariableReplaces the selected expression with a new variable.Ctrl+Alt+VCmd+Option+V
Introduce ConstantReplaces the selected expression with a new constant.Ctrl+Alt+CCmd+Option+C
Introduce FieldReplaces the selected expression with a new class field.Ctrl+Alt+FCmd+Option+F
Introduce ParameterMakes the expression at the caret a new parameter of the enclosing function.Ctrl+Alt+PCmd+Option+P

Running and testing 12

ActionWindows / LinuxMac
RunStarts the configuration selected in the Run widget; Ctrl with R on a Mac.Shift+F10Ctrl+R
DebugStarts the current configuration under the debugger; Ctrl with D on a Mac.Shift+F9Ctrl+D
Select Configuration and RunOpens a popup of run configurations to choose from.Alt+Shift+F10Ctrl+Option+R
Select Configuration and DebugThe same popup, but the chosen configuration starts in debug mode.Alt+Shift+F9Ctrl+Option+D
Run Context ConfigurationRuns the test that the caret is in, using a temporary run configuration.Ctrl+Shift+F10Ctrl+Shift+R
StopEnds the running process; with several running, you pick which one.Ctrl+F2Cmd+F2
RerunRuns the whole test session again.Ctrl+F5Cmd+R
Rerun TestsRepeats the tests of the scope that was run last, as the Vitest topic describes it.Alt+Shift+RCmd+Ctrl+R
Next failed testMoves to the following failed test in the Test Runner tab.Ctrl+Alt+DownCmd+Option+Down
Previous failed testMoves to the failed test before the current one in the Test Runner tab.Ctrl+Alt+UpCmd+Option+Up
Go to TestJumps from a source file to its test; from a test, the same key opens the test subject.Ctrl+Shift+TCmd+Shift+T
Show Code Coverage DataReopens the Coverage tool window with the collected report.Ctrl+Alt+F6Cmd+Option+F6

Debugging 17

ActionWindows / LinuxMac
Step OverRuns the current line and stops at the next one without entering the functions it calls.F8F8
Step IntoEnters the function that is called on the current line.F7F7
Smart Step IntoLets you choose which of several calls on the line to enter.Shift+F7Shift+F7
Step OutFinishes the current function and returns to the line that called it.Shift+F8Shift+F8
Run to CursorContinues until execution reaches the line the caret is on.Alt+F9Option+F9
Force Step OverSteps over the line and ignores breakpoints inside the functions it calls.Alt+Shift+F8Option+Shift+F8
Force Step IntoEnters a function even when regular stepping would skip it.Alt+Shift+F7Option+Shift+F7
Force Run to CursorRuns to the caret line and ignores any breakpoints on the way.Ctrl+Alt+F9Cmd+Option+F9
Resume ProgramContinues a paused session; on a Mac the key is Cmd with Option and R.F9Cmd+Option+R
Toggle BreakpointSets or removes a line breakpoint on the line with the caret.Ctrl+F8Cmd+F8
Toggle temporary breakpointSets a breakpoint that disappears as soon as it has been hit once.Ctrl+Alt+Shift+F8Cmd+Option+Shift+F8
View BreakpointsOpens the Breakpoints dialog, where all breakpoints are listed and configured.Ctrl+Shift+F8Cmd+Shift+F8
Evaluate ExpressionOpens the Evaluate dialog; the help warns that the key may not work on Ubuntu.Alt+F8Option+F8
Quick Evaluate ExpressionShows the value of the expression selected in the editor.Ctrl+Alt+F8Cmd+Option+F8
Show Execution PointBrings the editor back to the line where the program is paused.Alt+F10Option+F10
Set ValueChanges the value of the variable selected in the Variables pane.F2F2
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+ClickCmd+Shift+Click

Version control 18

ActionWindows / LinuxMac
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+KCmd+K
Commit and PushPushes to the remote repository right after the commit is made.Ctrl+Alt+KCmd+Option+K
PushSends the commits of the current branch to the remote.Ctrl+Shift+KCmd+Shift+K
Update ProjectSyncs the project with its remote Git repository.Ctrl+TCmd+T
RollbackReverts the selected files to the last committed state.Ctrl+Alt+ZCmd+Option+Z
Stage fileWith the Git staging area enabled in Settings, stages the whole selected file.Ctrl+Alt+ACmd+Option+A
Show DiffCompares the selected file with its repository version in the diff viewer.Ctrl+DCmd+D
Shelve SilentlyShelves the selected changes without showing the Shelve Changes dialog.Ctrl+Shift+HCmd+Shift+H
UnshelveOpens the dialog for restoring the selected shelved changes.Ctrl+Shift+UCmd+Shift+U
Unshelve SilentlyRestores the selected shelved changes without a dialog.Ctrl+Alt+UCmd+Option+U
Recent ChangesLists the changes made to the project recently.Alt+Shift+COption+Shift+C
Next ChangeMoves the caret to the next changed fragment in the editor.Ctrl+Alt+Shift+DownCtrl+Option+Shift+Down
Previous ChangeMoves the caret to the changed fragment before the current one.Ctrl+Alt+Shift+UpCtrl+Option+Shift+Up
Next DifferenceJumps to the following changed block in the diff viewer.F7F7
Previous DifferenceJumps to the changed block before the current one in the diff viewer.Shift+F7Shift+F7
Switch diff panesMoves focus from one side of the diff viewer to the other.Ctrl+Shift+TabCtrl+Shift+Tab
Diff commands popupLists the most commonly used commands of the diff viewer.Ctrl+Shift+DCmd+Shift+D

Tool windows 23

ActionWindows / LinuxMac
Project tool windowEach of the numbered keys both shows and hides its tool window.Alt+1Cmd+1
Commit tool windowOpens the list of local changes and the commit controls.Alt+0Cmd+0
Find tool windowReopens the results of the last usage or text search.Alt+3Cmd+3
Run tool windowShows the output of the running configuration.Alt+4Cmd+4
Debug tool windowShows the frames, variables and console of the debug session.Alt+5Cmd+5
Problems tool windowLists the problems that inspections found in the file and the project.Alt+6Cmd+6
Structure tool windowShows the structure of the file that is open in the editor.Alt+7Cmd+7
Services tool windowGroups run configurations, Docker and database sessions in one place.Alt+8Cmd+8
Git tool windowHolds the Log tab with the commit history of the repository.Alt+9Cmd+9
Terminal tool windowOpens the built-in terminal in the project directory.Alt+F12Option+F12
New terminal tabStarts another shell session in a separate tab; Cmd with T on a Mac.Ctrl+Shift+TCmd+T
Back to last tool windowReturns from the editor to the tool window you used most recently.F12F12
Go to EditorLeaves the tool window and puts the caret back where it was in the code.EscEsc
Hide Active Tool WindowHides the tool window that has focus.Shift+EscShift+Esc
Hide All Tool WindowsHides every tool window so that only the editor remains, which the help calls maximizing the editor.Ctrl+Shift+F12Cmd+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+LeftCtrl+Option+Left
Stretch tool window to the rightResizes a vertical tool window horizontally.Ctrl+Alt+Shift+RightCtrl+Option+Right
Stretch tool window to the topResizes a horizontal tool window vertically.Ctrl+Alt+Shift+UpCtrl+Option+Up
Stretch tool window to the bottomMoves the border of a horizontal tool window downward.Ctrl+Alt+Shift+DownCtrl+Option+Down
Restore Default LayoutPuts all tool windows back where the Default layout has them.Shift+F12Shift+F12
Close active tabCloses the current tab of a tool window such as Run, ending its process.Ctrl+Shift+F4Ctrl+Shift+F4
Preview fileShows the file selected in the Project tool window in a popup.SpaceSpace

JavaScript and web tools 10

ActionWindows / LinuxMac
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+F10Ctrl+Shift+R
Reformat with PrettierFormats the file or selection with Prettier instead of the IDE formatter.Ctrl+Alt+Shift+PCmd+Option+Shift+P
Open in BrowserOpens the current HTML file in the browser; with several configured, you choose one.Alt+F2Option+F2
Toggle Rendered ViewSwitches a JSDoc comment between its source and a rendered, readable form.Ctrl+Alt+QCtrl+Option+Q
External DocumentationOpens the MDN article for the symbol at the caret in the browser.Shift+F1Shift+F1
Expand Emmet abbreviationTurns a typed abbreviation into markup; another expansion key can be set in the Emmet settings.TabTab
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+HomeCmd+Ctrl+Up
Open image in external editorOpens the image file in the program your operating system uses for it by default.Ctrl+Alt+F4Cmd+Option+F4

Markdown editing 5

ActionWindows / LinuxMac
BoldFormats the text selected in a Markdown file as bold.Ctrl+BCmd+B
ItalicFormats the selected Markdown text as italic.Ctrl+ICmd+I
StrikethroughStrikes through the selected Markdown text.Ctrl+Shift+SCmd+Shift+S
CodeMarks the selected Markdown text as inline code.Ctrl+Shift+CCmd+Shift+C
Create LinkTurns the selected Markdown text into a link.Ctrl+Shift+UCmd+Shift+U

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

39 more source pages

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.