General 12
Help and card name the first column differently: the PhpStorm help calls it the predefined Windows keymap and has no Linux page, while the PDF reference card it links to prints the same keys under Default Windows & Linux keymap.
On Ubuntu the desktop answers several of these chords first: Reformat Code's Ctrl + Alt + L becomes Lock screen, Surround With's Ctrl + Alt + T launches a terminal, and Evaluate Expression's Alt + F8 resizes the window. JetBrains knows of no predefined keymap that avoids such clashes on Linux, so give the affected actions other keys.
| Action | Windows / Linux | Mac |
|---|---|---|
| Search EverywhereTap Shift twice; one popup then looks through classes, files, symbols, actions and settings. | ShiftthenShift | ShiftthenShift |
| Find ActionType part of a command name to run it, whether or not it has a key of its own. | Ctrl+Shift+A | Cmd+Shift+A |
| Run AnythingTap Ctrl twice on either system; the popup also runs Composer, Symfony console and Laravel Artisan commands. | CtrlthenCtrl | CtrlthenCtrl |
| Open SettingsThe Mac binding is Cmd with the comma key. | Ctrl+Alt+S | Cmd+, |
| Save All | Ctrl+S | Cmd+S |
| New file in current directoryOffers the New popup for the folder of the file that is open in the editor. | Ctrl+Alt+Insert | Ctrl+Option+N |
| New scratch fileCreates a throwaway file in the language you pick; choosing HTTP Request starts a request file. | Ctrl+Alt+Shift+Insert | Cmd+Shift+N |
| Increase editor font sizeApplies to every editor tab at once; Mac swaps Alt for Ctrl in this pair. | Alt+Shift+. | Ctrl+Shift+. |
| Decrease editor font sizeShrinks the code font in every open editor tab. | Alt+Shift+, | Ctrl+Shift+, |
| SwitcherKeep Ctrl held and press Tab again to step through open files and tool windows. | Ctrl+Tab | Ctrl+Tab |
| Open the Switch menuLists color schemes, keymaps and view modes; pressing the chord again reverts the choice. | Ctrl+` | Ctrl+` |
| Focus the editorReturns the keyboard focus from any tool window to the active editor. | Esc | Esc |
Editing 30
| Action | Windows / Linux | Mac |
|---|---|---|
| CutWith nothing selected, the whole line at the caret is cut. | Ctrl+X | Cmd+X |
| CopyWith nothing selected, the whole line the caret is on is copied. | Ctrl+C | Cmd+C |
| PasteA line copied without a selection is inserted above the current line, not at the caret. | Ctrl+V | Cmd+V |
| Paste as Plain Text | Ctrl+Alt+Shift+V | Cmd+Option+Shift+V |
| Paste from HistoryOpens the clipboard history, which keeps 100 entries by default. | Ctrl+Shift+V | Cmd+Shift+V |
| Copy Paths | Ctrl+Shift+C | Cmd+Shift+C |
| Copy ReferenceThe copied reference carries the line number, so it points at that exact spot. | Ctrl+Alt+Shift+C | Cmd+Option+Shift+C |
| Undo | Ctrl+Z | Cmd+Z |
| RedoNot Ctrl with Y: that chord deletes the current line in this keymap. | Ctrl+Shift+Z | Cmd+Shift+Z |
| Indent Selection | Tab | Tab |
| Unindent Line or Selection | Shift+Tab | Shift+Tab |
| Auto-Indent LinesRepairs indentation only; the Mac chord keeps Ctrl and adds Option. | Ctrl+Alt+I | Ctrl+Option+I |
| Start New LineOpens a line under the current one from any caret position, without splitting the text. | Shift+Enter | Shift+Return |
| Start new line aboveOpens an empty line over the current one. | Ctrl+Alt+Enter | Cmd+Option+Return |
| Delete LineOn a Mac the chord is Cmd with Backspace, not a letter key. | Ctrl+Y | Cmd+Backspace |
| Delete to Word End | Ctrl+Delete | Option+Delete |
| Delete to Word Start | Ctrl+Backspace | Option+Backspace |
| Join LinesKeep pressing to pull up further lines; it joins string literals too. The Mac chord also takes Ctrl. | Ctrl+Shift+J | Ctrl+Shift+J |
| Split string literalInside a string literal, breaks it into two parts at the caret. | Ctrl+Enter | Cmd+Return |
| Duplicate Line or SelectionWith nothing selected, the line at the caret is repeated underneath. | Ctrl+D | Cmd+D |
| Toggle CaseA CamelCase name is converted to lower case. | Ctrl+Shift+U | Cmd+Shift+U |
| Move Statement UpCarries the whole statement at the caret upwards and checks the syntax as it goes. | Ctrl+Shift+Up | Cmd+Shift+Up |
| Move Statement DownMoves the whole statement at the caret below the next one. | Ctrl+Shift+Down | Cmd+Shift+Down |
| Move Element Left | Ctrl+Alt+Shift+Left | Cmd+Option+Shift+Left |
| Move Element RightThe vendor table calls this row Move Statement Right; its chord mirrors Move Element Left. | Ctrl+Alt+Shift+Right | Cmd+Option+Shift+Right |
| Move Line UpShifts the single line at the caret one row up. | Alt+Shift+Up | Option+Shift+Up |
| Move Line DownShifts the single line at the caret one row down. | Alt+Shift+Down | Option+Shift+Down |
| Toggle line commentPress again on a commented line to remove the comment marker. | Ctrl+/ | Cmd+/ |
| Toggle block commentThe Mac chord is Cmd, Option and the slash key, with no Shift. | Ctrl+Shift+/ | Cmd+Option+/ |
| Unwrap or removePops up the unwrap and remove choices for the code at the caret; pick one and confirm with Enter. | Ctrl+Shift+Delete | Cmd+Shift+Delete |
Code completion and generation 20
| Action | Windows / Linux | Mac |
|---|---|---|
| Basic CompletionPress it a second time to widen the suggestions; the completion chords stay on Ctrl on a Mac. | Ctrl+Space | Ctrl+Space |
| Type-Matching Completion | Ctrl+Shift+Space | Ctrl+Shift+Space |
| Second Basic Completion | Ctrl+Alt+Space | Ctrl+Option+Space |
| Complete Current StatementBalances parentheses and adds missing braces and semicolons so that the construct is valid. | Ctrl+Shift+Enter | Cmd+Shift+Return |
| Parameter InfoBrings back the parameter popup for the call at the caret after it has closed. | Ctrl+P | Cmd+P |
| Quick DocumentationShows the documentation in a popup; a second press moves it to the Documentation tool window. Plain F1 on a Mac. | Ctrl+Q | F1 |
| External DocumentationSends the lookup to a web browser instead of the documentation popup. | Shift+F1 | Shift+F1 |
| Toggle rendered PHPDoc viewSwitches a PHPDoc comment between its source and an easier-to-read rendered form in the editor. | Ctrl+Alt+Q | Ctrl+Option+Q |
| Quick DefinitionShows the definition of the entry highlighted in the completion list; Option with Space on a Mac. | Ctrl+Shift+I | Option+Space |
| Type InfoReports the type of the expression or variable at the caret. | Ctrl+Shift+P | Ctrl+Shift+P |
| Context InfoShows on which code element the caret currently sits. | Alt+Q | Ctrl+Shift+Q |
| GenerateOpens the Generate popup: constructors, getters and setters, PHPDoc blocks and, in a test class, test methods. | Alt+Insert | Cmd+N |
| Override MethodsPick parent-class methods to override; the chord is the same on a Mac, with Ctrl. | Ctrl+O | Ctrl+O |
| Implement MethodsCreates stubs for the methods an interface or abstract class still requires. | Ctrl+I | Ctrl+I |
| Insert Live TemplateLists the templates that apply at the caret, such as fore for a foreach loop. | Ctrl+J | Cmd+J |
| Surround WithSelect a code fragment first, then pick the construct to wrap it in. | Ctrl+Alt+T | Cmd+Option+T |
| Surround with live templateWith a block selected, opens the Select Template popup for templates that wrap code. | Ctrl+Alt+J | Cmd+Option+J |
| Reformat CodeApplies the code style to the selected fragment or the file; on a folder in the project view, to the files inside. | Ctrl+Alt+L | Cmd+Option+L |
| Reformat File dialogOpens the dialog whose options include cleaning up imports during the reformat. | Ctrl+Alt+Shift+L | Cmd+Option+Shift+L |
| Optimize ImportsRemoves unused imports and tidies the rest; the Mac chord keeps Ctrl and adds Option. | Ctrl+Alt+O | Ctrl+Option+O |
Caret movement 13
| Action | Windows / Linux | Mac |
|---|---|---|
| Caret to previous wordWord jumps use Ctrl on Windows and Option on a Mac. | Ctrl+Left | Option+Left |
| Caret to next word | Ctrl+Right | Option+Right |
| Caret to line startHome on a PC keyboard; Cmd with the Left arrow on a Mac. | Home | Cmd+Left |
| Caret to line endEnd on a PC keyboard; Cmd with the Right arrow on a Mac. | End | Cmd+Right |
| Caret to matching braceThe Mac chord drops Shift: Ctrl with M. | Ctrl+Shift+M | Ctrl+M |
| Jump to code block startThe Mac chord needs Option as well as Cmd, since Cmd with a bracket alone navigates back and forward. | Ctrl+[ | Cmd+Option+[ |
| Jump to code block end | Ctrl+] | Cmd+Option+] |
| Caret to page topJumps to the top of the visible part of the editor. | Ctrl+Page Up | Cmd+Page Up |
| Caret to page bottomJumps to the bottom of the visible part of 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 start | Ctrl+Shift+[ | Cmd+Option+Shift+[ |
| Select to code block end | Ctrl+Shift+] | Cmd+Option+Shift+] |
| Select to page top | Ctrl+Shift+Page Up | Cmd+Shift+Page Up |
| Select to page bottom | 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 SelectionGrows the selection step by step, in plain text from a word to the sentence and on. Option with Up on a Mac. | Ctrl+W | Option+Up |
| Shrink SelectionUndoes the last Extend Selection step. | Ctrl+Shift+W | Option+Down |
Code folding 10
| Action | Windows / Linux | Mac |
|---|---|---|
| ExpandUnfolds the fragment at the caret, for example a single method; the key is on the numeric keypad. | Ctrl+Num + | Cmd+Num + |
| CollapseFolds the current fragment, such as a method or a block in curly braces. | Ctrl+Num - | Cmd+Num - |
| Expand RecursivelyOpens the current fragment together with every region nested in it. | Ctrl+Alt+Num + | Cmd+Option+Num + |
| Collapse RecursivelyFolds the current fragment and all of its subordinate regions. | Ctrl+Alt+Num - | Cmd+Option+Num - |
| Expand AllWorks on the selection, or on the whole file when nothing is selected. | Ctrl+Shift+Num + | Cmd+Shift+Num + |
| Collapse AllFolds every fragment in the selection or, with no selection, in the file. | Ctrl+Shift+Num - | Cmd+Shift+Num - |
| Fold SelectionTurns the selected code into a foldable fragment; press it again to open it. | Ctrl+. | Cmd+. |
| Expand to levelA sequence: after the chord, type a digit from 1 to 5 for how many nesting levels to open. | Ctrl+Num *then1-5 | Cmd+Num *then1-5 |
| Expand all to levelSame idea for the whole file: the digit sets the depth to which collapsed fragments open. | Ctrl+Shift+Num *then1-5 | Cmd+Option+Num *then1-5 |
| Go to custom folding regionJumps to a region that you created yourself with folding comments. | Ctrl+Alt+. | Cmd+Option+. |
Multiple carets 11
Clone Caret Above and Below begin with a double press: press Ctrl, press it again and hold it down while choosing Up or Down. The macOS keymap does the same with Option.
| Action | Windows / Linux | Mac |
|---|---|---|
| Add or remove a caretClicking an existing caret with the modifier removes it; the last caret always stays. | Alt+Click | Option+Click |
| Toggle Column Selection ModeThe Mac binding is unrelated to the Windows one: Cmd, Shift and 8. | Alt+Shift+Insert | Cmd+Shift+8 |
| Clone Caret AboveTap the modifier twice and keep it down on the second tap, then press the arrow. | CtrlthenCtrl+Up | OptionthenOption+Up |
| Clone Caret BelowThe doubled modifier is Ctrl on Windows and Option on a Mac. | CtrlthenCtrl+Down | OptionthenOption+Down |
| Carets on every selected linePuts a caret at the end of every line of the selected block. | Alt+Shift+G | Option+Shift+G |
| Select next occurrencePress repeatedly to add each further match; F3 skips one. The Mac chord is Ctrl with G. | Alt+J | Ctrl+G |
| Select All Occurrences | Ctrl+Alt+Shift+J | Cmd+Ctrl+G |
| Deselect last occurrenceTakes the most recently added occurrence out of the multiple selection. | Alt+Shift+J | Ctrl+Shift+G |
| Rectangular selection to clickPut the caret at one corner, then middle-click the opposite corner with both modifiers held. | Alt+Shift+Middle-click | Option+Shift+Middle-click |
| Rectangular selection by dragging | Alt+Shift+Click | Option+Shift+Click |
| Add another rectangular selection | Ctrl+Alt+Shift+Click | Cmd+Option+Shift+Click |
Bookmarks 6
| Action | Windows / Linux | Mac |
|---|---|---|
| Toggle anonymous bookmarkThe bookmark keys sit on F11 in the Windows keymap and on F3 in the macOS one. | F11 | F3 |
| Toggle mnemonic bookmarkA popup asks for the digit or letter that will identify the bookmark. | Ctrl+F11 | Option+F3 |
| Toggle bookmark with digitSets or clears the bookmark numbered with the digit you press. | Ctrl+Shift+0-9 | Ctrl+Shift+0-9 |
| Go to numbered bookmarkHold Ctrl and press the digit of the bookmark; the macOS keymap uses Ctrl here as well. | Ctrl+0-9 | Ctrl+0-9 |
| Show all bookmarksLists every line bookmark in a popup. | Shift+F11 | Cmd+F3 |
| Show Mnemonic Bookmarks | Ctrl+Shift+F11 | Cmd+Option+F3 |
Search and replace 7
| Action | Windows / Linux | Mac |
|---|---|---|
| FindThe search pane opens at the top of the active editor. | Ctrl+F | Cmd+F |
| Find NextF3 in the Windows keymap; Cmd with G on a Mac, where F3 toggles a bookmark. | F3 | Cmd+G |
| Find Previous | Shift+F3 | Cmd+Shift+G |
| Replace | Ctrl+R | Cmd+R |
| Find in FilesText highlighted in the editor is placed in the search field. | Ctrl+Shift+F | Cmd+Shift+F |
| Replace in Files | Ctrl+Shift+R | Cmd+Shift+R |
| Find word at caretThe help gives this key for Windows only; the macOS keymap page leaves the action without one. | Ctrl+F3 | — |
Code inspection 5
| Action | Windows / Linux | Mac |
|---|---|---|
| Show Context ActionsLists quick-fixes for a highlighted problem and intention actions for the code at the caret. | Alt+Enter | Option+Return |
| Error Description | Ctrl+F1 | Cmd+F1 |
| Next Highlighted ErrorBy default errors come before warnings; F2 on both systems, with Shift to go backwards. | F2 | F2 |
| Previous Highlighted Error | Shift+F2 | Shift+F2 |
| Run Inspection by Name | Ctrl+Alt+Shift+I | Cmd+Option+Shift+I |
Running and testing 10
| Action | Windows / Linux | Mac |
|---|---|---|
| RunLaunches the configuration selected in the Run widget; Ctrl with R on a Mac. | Shift+F10 | Ctrl+R |
| Run from configuration listShows a popup of run configurations to choose from. | Alt+Shift+F10 | Ctrl+Option+R |
| Run test at caretWith the caret in a PHPUnit test class or method, runs just that; Ctrl, Shift and R on a Mac. | Ctrl+Shift+F10 | Ctrl+Shift+R |
| RerunIn the Run tool window, stops the running application and launches it again. | Ctrl+F5 | Cmd+R |
| Go to test or test subjectJumps from a class or method to its test, and from a test back to the code it covers. | Ctrl+Shift+T | Cmd+Shift+T |
| Manage coverage reportsThe same chord also reopens the Coverage tool window after it has been closed. | Ctrl+Alt+F6 | Cmd+Option+F6 |
| Open in browserRenders the output of the PHP file in a web browser through the built-in web server. | Alt+F2 | Option+F2 |
| StopWhen several processes are running, a list asks which one to stop. | Ctrl+F2 | Cmd+F2 |
| Stop Background Processes | Ctrl+Shift+F2 | Cmd+Shift+F2 |
| Close Run tabCloses the selected Run tab and terminates its process; the Mac chord keeps Ctrl. | Ctrl+Shift+F4 | Ctrl+Shift+F4 |
Debugging 21
| Action | Windows / Linux | Mac |
|---|---|---|
| DebugStarts the selected configuration under the debugger; Ctrl with D on a Mac. | Shift+F9 | Ctrl+D |
| Debug from configuration listWith a PHP script open in the editor, the popup lets you pick that script to debug. | Alt+Shift+F9 | Ctrl+Option+D |
| Attach to Process | Ctrl+Alt+F5 | Option+Shift+F5 |
| Resume ProgramRuns on to the next breakpoint; F9 on Windows, Cmd, Option and R on a Mac. | F9 | Cmd+Option+R |
| Step OverExecutes the current line without entering the calls on it. | F8 | F8 |
| Force Step OverLike Step Over, and breakpoints inside the called methods are ignored. | Alt+Shift+F8 | Option+Shift+F8 |
| Step IntoGoes inside the method called on the current line. | F7 | F7 |
| Smart Step IntoOn a line with several calls, lets you choose which one to enter. | Shift+F7 | Shift+F7 |
| Force Step IntoEnters a method even when the regular Step Into would skip it. | Alt+Shift+F7 | Option+Shift+F7 |
| Step OutFinishes the current method and returns to its caller. | Shift+F8 | Shift+F8 |
| Run to CursorContinues until execution reaches the line where the caret is. | Alt+F9 | Option+F9 |
| Force Run to CursorAs Run to Cursor, except that breakpoints on the way are ignored. | Ctrl+Alt+F9 | Cmd+Option+F9 |
| Show Execution Point | Alt+F10 | Option+F10 |
| Evaluate ExpressionOpens the Evaluate dialog; the help warns that this chord may not work on Ubuntu. | Alt+F8 | Option+F8 |
| Quick Evaluate ExpressionEvaluates the expression selected in the editor and shows the value in a tooltip. | Ctrl+Alt+F8 | Cmd+Option+F8 |
| Toggle Line BreakpointActs on the line with the caret; on a method declaration it sets a method breakpoint. | Ctrl+F8 | Cmd+F8 |
| Toggle temporary breakpoint | Ctrl+Alt+Shift+F8 | Cmd+Option+Shift+F8 |
| View BreakpointsOpens the Breakpoints dialog, which is also where PHP exception breakpoints are added. | Ctrl+Shift+F8 | Cmd+Shift+F8 |
| Edit BreakpointOn a line that has a breakpoint, the same chord opens the full list of its properties. | Ctrl+Shift+F8 | Cmd+Shift+F8 |
| Set ValueLets you change the value of the selected variable during a debugging session. | F2 | F2 |
| Jump to Type SourceFrom a variable in the debugger, opens the declaration of its class. | Shift+F4 | Shift+F4 |
Refactoring 12
| Action | Windows / Linux | Mac |
|---|---|---|
| Refactor ThisA short Ctrl with T on a Mac, against a four-key chord on Windows. | Ctrl+Alt+Shift+T | Ctrl+T |
| RenameRenames in place in the editor; press the chord once more for the Rename dialog with more options. | Shift+F6 | Shift+F6 |
| Change Signature | Ctrl+F6 | Cmd+F6 |
| InlineReverses an extraction, for example after Extract Method. | Ctrl+Alt+N | Cmd+Option+N |
| Move | F6 | F6 |
| CopyCopies a class, file or directory, with its structure, to another directory. | F5 | F5 |
| Extract Method | Ctrl+Alt+M | Cmd+Option+M |
| Introduce VariablePuts the selected expression, or a part of it, into a new variable. | Ctrl+Alt+V | Cmd+Option+V |
| Extract ConstantTurns the selected expression into a constant. | Ctrl+Alt+C | Cmd+Option+C |
| Introduce Field | Ctrl+Alt+F | Cmd+Option+F |
| Introduce Parameter | Ctrl+Alt+P | Cmd+Option+P |
| Safe DeleteCmd with Delete on a Mac. | Alt+Delete | Cmd+Delete |
Version control 9
| Action | Windows / Linux | Mac |
|---|---|---|
| VCS Operations PopupAlt with the backtick key on Windows; Ctrl with V on a Mac. | Alt+` | Ctrl+V |
| CommitIn the Commit tool window it selects the entire active changelist. | Ctrl+K | Cmd+K |
| Commit and PushCommits and pushes to the remote repository in one go. | Ctrl+Alt+K | Cmd+Option+K |
| Stage fileWorks on the file selected in the Commit tool window and stages all of it. | Ctrl+Alt+A | Cmd+Option+A |
| Update Project | Ctrl+T | Cmd+T |
| PushOpens the Push dialog for the commits of the current branch. | Ctrl+Shift+K | Cmd+Shift+K |
| Rollback | Ctrl+Alt+Z | Cmd+Option+Z |
| Next Change | Ctrl+Alt+Shift+Down | Ctrl+Option+Shift+Down |
| Previous Change | Ctrl+Alt+Shift+Up | Ctrl+Option+Shift+Up |
Comparing files 8
| Action | Windows / Linux | Mac |
|---|---|---|
| Show Diff | Ctrl+D | Cmd+D |
| Compare FilesSelect two files, or one file to compare its versions; the diff opens in a new tab. | Ctrl+D | Cmd+D |
| Next DifferenceIn the diff viewer F7 moves between differences; in a debug session it is Step Into. | F7 | F7 |
| Previous Difference | Shift+F7 | Shift+F7 |
| Accept Left SideThe Mac chord is Cmd and Ctrl with the Right arrow. | Ctrl+Alt+R | Cmd+Ctrl+Right |
| Accept Right SideThe Mac chord is Cmd and Ctrl with the Left arrow. | Ctrl+Alt+A | Cmd+Ctrl+Left |
| Select Opposite Diff PaneMoves the caret between the left and the right pane of the viewer. | Ctrl+Shift+Tab | Ctrl+Shift+Tab |
| Diff viewer settingsPops up a menu of the most commonly used diff commands. | Ctrl+Shift+D | Cmd+Shift+D |
Database tools 18
The Database tool window itself has no default key: the vendor table lists Show Database window with N/A, unlike the numbered tool windows.
| Action | Windows / Linux | Mac |
|---|---|---|
| New query consoleCreates another query console for the data source selected in the Database tool window. | Ctrl+Shift+Q | Cmd+Shift+L |
| Jump to Query ConsoleLists the consoles of the selected data source; New Query Console is one of the choices. | Ctrl+Shift+F10 | Cmd+Shift+F10 |
| Open default query consoleClick the data source in the Database tool window first. | F4 | Cmd+Down |
| Execute statementRuns the statement at the caret in a query console; with several statements you choose which to run. | Ctrl+Enter | Cmd+Return |
| Browse Query HistoryOpens the Query History dialog with the statements run earlier. | Ctrl+Alt+E | Cmd+Option+E |
| Select object in Database viewSelect the name of a table or column in your code first. | Alt+Shift+B | Option+Shift+B |
| Add RowData editor: inserts a new row, which is saved to the database once you submit it. | Alt+Insert | Cmd+N |
| Delete RowData editor: removes the selected row or rows. | Ctrl+Y | Cmd+Backspace |
| Revert SelectedData editor: restores the selected cells to their previous values. | Ctrl+Alt+Z | Cmd+Option+Z |
| Submit changesData editor: sends the local edits to the database server. | Ctrl+Enter | Cmd+Return |
| Submit and CommitFor the manual transaction mode: submits the edits and commits the transaction. | Ctrl+Alt+Shift+Enter | Cmd+Option+Shift+Return |
| Reload PageData editor: fetches the table data again from the database. | Ctrl+F5 | Cmd+R |
| Set cell to DEFAULT | Ctrl+Alt+D | Cmd+Option+D |
| Set cell to NULL | Ctrl+Alt+N | Cmd+Option+N |
| Open in Value EditorEdits the data of the cell in a dedicated editor instead of inline. | Shift+Enter | Shift+Return |
| Go to RowData editor: jumps to the row and column you type in the dialog. | Ctrl+G | Cmd+L |
| Full-Text SearchSearches the data itself across the selected databases, not object names. | Ctrl+Alt+Shift+F | Cmd+Option+Shift+F |
| Cancel Running Statements | Ctrl+F2 | Cmd+F2 |
Tool windows 22
| Action | Windows / Linux | Mac |
|---|---|---|
| Show Project windowTool windows have number keys: Alt with the digit on Windows, Cmd with it on a Mac. | Alt+1 | Cmd+1 |
| Show Bookmarks window | Alt+2 | Cmd+2 |
| Show Find window | Alt+3 | Cmd+3 |
| Show Run window | Alt+4 | Cmd+4 |
| Show Debug window | Alt+5 | Cmd+5 |
| Show Problems window | Alt+6 | Cmd+6 |
| Show Structure window | Alt+7 | Cmd+7 |
| Show Services window | Alt+8 | Cmd+8 |
| Show Version Control window | Alt+9 | Cmd+9 |
| Show Commit window | Alt+0 | Cmd+0 |
| Show Terminal windowPressed while the terminal has the focus, it closes the Terminal tool window. | Alt+F12 | Option+F12 |
| Hide Active Tool Window | Shift+Esc | Shift+Esc |
| Hide All Tool WindowsLeaves only the active editor visible; with split editors the active one is maximized. | Ctrl+Shift+F12 | Cmd+Shift+F12 |
| Focus last tool windowMoves the focus from the editor back to the tool window used last. | F12 | F12 |
| Maximize Tool WindowStretches the active tool window to its greatest width or height. | Ctrl+Shift+' | Cmd+Shift+' |
| Stretch to LeftThe four Stretch chords resize the active tool window; a Mac drops Shift from them. | Ctrl+Alt+Shift+Left | Ctrl+Option+Left |
| Stretch to Right | Ctrl+Alt+Shift+Right | Ctrl+Option+Right |
| Stretch to Top | Ctrl+Alt+Shift+Up | Ctrl+Option+Up |
| Stretch to Bottom | Ctrl+Alt+Shift+Down | Ctrl+Option+Down |
| Restore default layoutReturns the tool windows to the Default layout. | Shift+F12 | Shift+F12 |
| New terminal tabStarts another shell session in the Terminal tool window; Cmd with T on a Mac. | Ctrl+Shift+T | Cmd+T |
| List terminal tabs | Alt+Down | Ctrl+Shift+Down |
No row on this page matches that filter.
Notes
Finding PHP classes, interfaces and tests
Classes have a finder of their own on Ctrl + N, and Ctrl + Alt + Shift + N looks up any other symbol by name. Ctrl + B on a method call opens its declaration, and inside an overriding method Ctrl + U climbs to the parent version; on an interface name, Ctrl + Alt + B lists the classes that implement it, while Ctrl + H opens the class tree, ancestors and descendants alike, in the Hierarchy tool window. Ctrl + Shift + T hops from a class to its test and back; when there is no single match, a popup lets you pick a test or create one. A @covers annotation keeps that link working for PHPUnit and Codeception tests whose names break the naming convention. Mac users press Cmd + O, Cmd + Option + O, Cmd + B, Cmd + U, Cmd + Option + B and Cmd + Shift + T; the hierarchy chord is identical there.
Writing PHP: imports, PHPDoc and Composer
When code refers to a class from another namespace, Alt + Enter offers to import it; accepting inserts the use statement among the file's imports and leaves the caret in place. Ctrl + Alt + O later strips unused imports from the file, or from every file of a selected directory. Typing /** above a function and pressing Enter writes a PHPDoc stub with the parameters and return value PhpStorm can infer; inside such a block Ctrl + Space suggests tag names, and Ctrl + Alt + Q flips the comment into a rendered view and back. In composer.json the completion key proposes package names and versions, and Alt + Enter on a declared but missing package offers to install it. Alt + Insert generates constructors, accessors and PHPDoc blocks, Ctrl + O and Ctrl + I add overridden or interface methods, and Ctrl + J lists live templates such as fore, which expands to a foreach loop. With the macOS keymap these are Option + Return, Ctrl + Option + O, Ctrl + Option + Q, Cmd + N and Cmd + J, with Override and Implement left on Ctrl.
Running scripts, PHPUnit and Xdebug sessions
Shift + F10 starts whatever configuration the Run widget shows and Shift + F9 launches the same configuration in debug mode. Alt + F2 previews the open PHP file in a browser through the built-in web server, provided a local PHP interpreter is configured. In a PHPUnit class, Ctrl + Shift + F10 runs the test method or class holding the caret, and Ctrl + Alt + F6 opens the coverage reports. Listening for Xdebug has no key: it is the Start Listen PHP Debug Connections toggle on the toolbar or status bar. While a request is suspended, step with F8 and F7, leave a function with Shift + F8, let it continue with F9, and test an expression with Alt + F8. Exception breakpoints, which halt on a thrown exception or error or on a PHP notice or warning, are added in the dialog behind Ctrl + Shift + F8. Mac equivalents: Ctrl + R, Ctrl + D, Option + F2, Ctrl + Shift + R, Cmd + Option + F6, Cmd + Option + R to resume, Option + F8 and Cmd + Shift + F8; the step keys stay the same.
Command line tools, HTTP requests and SQL
Two quick presses of Ctrl (Ctrl, Ctrl) open Run Anything, which launches the commands of configured PHP tools such as Composer, the Symfony console or Laravel Artisan; Laravel support itself comes from the Laravel Idea plugin, which now ships with PhpStorm. A scratch file made with Ctrl + Alt + Shift + Insert can be an HTTP Request file whose requests run straight from the editor. For SQL, Ctrl + Shift + Q adds a query console for the data source picked in the Database tool window, Ctrl + Enter executes the SQL under the caret, and Alt + Shift + B on a table name in your code reveals that table in the Database view. Ctrl + Alt + Shift + F searches the stored rows themselves rather than object names.
Questions
How do I run one PHPUnit test method?
Place the caret inside the method and press Ctrl + Shift + F10; the macOS keymap uses Ctrl + Shift + R. With the caret on the class instead, every test in the class runs. PhpStorm creates a run configuration with default settings that can be saved for reuse, and a test fed by a data provider can be run one data set at a time from the gutter icon beside that set.
How do I add the use statement for a class from another namespace?
With the caret on the class name, Alt + Enter offers the import; in the macOS keymap the key is Option + Return. PhpStorm writes the use statement into the imports section while your caret keeps its place, and Ctrl + Alt + O cleans out imports that are no longer needed.
Which key lists the classes that implement a PHP interface?
Ctrl + Alt + B on the interface name, or Cmd + Option + B in the macOS keymap, pops up the implementing classes. For the whole inheritance tree use Ctrl + H, which both keymaps share.
Can I start listening for Xdebug connections from the keyboard?
PhpStorm ships no key for it. The help switches listening on with the Start Listen PHP Debug Connections button on the toolbar or status bar. Once Xdebug suspends the script, F7 enters a call, F8 moves past it and F9 lets the request run on.
How do I write a PHPDoc block quickly?
Type /** on the line above a function, method or class and press Enter, and PhpStorm fills in a stub with the parameters and return value it can work out. To cover several constructs at once, open Alt + Insert (Cmd + N on a Mac) and choose Generate PHPDoc blocks. Ctrl + Alt + Q then shows the comment rendered.
Can I run Composer or Artisan commands without a terminal?
Yes: press Ctrl twice to open Run Anything and type the command. The help names Composer, the Symfony console and Laravel Artisan among the PHP command line tools it can launch once they are configured. Alt + F12 opens the Terminal tool window if you prefer a shell.
Which keymap does the Mac column follow?
The macOS keymap, the default PhpStorm suggests on a Mac. The help names two other Mac keymaps that this page does not list: IntelliJ IDEA Classic, a legacy set close to the Windows bindings, and macOS System Shortcuts, designed to keep clear of the system's own keys.
Sources and checks
- JetBrains — PhpStorm 2026.2 Help: Predefined Windows keymap Windows / Linux column of the main list
- JetBrains — PhpStorm 2026.2 Help: Predefined macOS keymap Mac column of the main list
- JetBrains — PhpStorm 2026.2 Help: Editor basics (Windows and macOS keymaps) Switch menu, focus the editor, close tab
- JetBrains — PhpStorm 2026.2 Help: Write and edit source code (Windows and macOS keymaps) Split string literal, Unwrap, folding levels, custom folding regions
- JetBrains — PhpStorm 2026.2 Help: Code reference information (Windows and macOS keymaps) Type Info, External Documentation
- JetBrains — PhpStorm 2026.2 Help: PHPDoc comments (Windows and macOS keymaps)
29 more source pages
- JetBrains — PhpStorm 2026.2 Help: Code completion (Windows and macOS keymaps) Quick Definition
- JetBrains — PhpStorm 2026.2 Help: Source code navigation (Windows and macOS keymaps) Context Info, select object in Database view
- JetBrains — PhpStorm 2026.2 Help: Override methods of a superclass (Windows and macOS keymaps) Override Methods
- JetBrains — PhpStorm 2026.2 Help: Implement methods of an interface or abstract class (Windows and macOS keymaps) Implement Methods
- JetBrains — PhpStorm 2026.2 Help: Explore PhpStorm features (Windows and macOS keymaps) Insert Live Template
- JetBrains — PhpStorm 2026.2 Help: Live templates (Windows and macOS keymaps) Surround with live template
- JetBrains — PhpStorm 2026.2 Help: Auto import (Windows and macOS keymaps) Optimize Imports, Reformat File dialog
- JetBrains — PhpStorm 2026.2 Help: Search everywhere (Windows and macOS keymaps) Go to Class
- JetBrains — PhpStorm 2026.2 Help: Recent files and changes (Windows and macOS keymaps) Recent Locations
- JetBrains — PhpStorm 2026.2 Help: Search for usages (Windows and macOS keymaps) Find Usages in File, Find Usages with options
- JetBrains — PhpStorm 2026.2 Help: View source code hierarchy (Windows and macOS keymaps) Type, method and call hierarchy
- JetBrains — PhpStorm 2026.2 Help: File navigation (Windows and macOS keymaps) Navigation bar
- JetBrains — PhpStorm 2026.2 Help: Tool windows (Windows and macOS keymaps) Jump to Source
- JetBrains — PhpStorm 2026.2 Help: PHPUnit (Windows and macOS keymaps) Run test at caret, Go to test
- JetBrains — PhpStorm 2026.2 Help: Run tool window (Windows and macOS keymaps) Rerun, Close Run tab
- JetBrains — PhpStorm 2026.2 Help: Run tests with code coverage (Windows and macOS keymaps) Coverage reports
- JetBrains — PhpStorm 2026.2 Help: Run/debug code (Windows and macOS keymaps) Open in browser
- JetBrains — PhpStorm 2026.2 Help: Examine a suspended program (Windows and macOS keymaps) Set Value, Jump to Type Source
- JetBrains — PhpStorm 2026.2 Help: Copy and move refactorings (Windows and macOS keymaps) Copy
- JetBrains — PhpStorm 2026.2 Help: Extract constant (Windows and macOS keymaps) Extract Constant
- JetBrains — PhpStorm 2026.2 Help: Commit and push changes to Git repository (Windows and macOS keymaps) Commit and Push, Stage file
- JetBrains — PhpStorm 2026.2 Help: Query consoles (Windows and macOS keymaps) Query console keys
- JetBrains — PhpStorm 2026.2 Help: Run queries (Windows and macOS keymaps) Execute statement, query history
- JetBrains — PhpStorm 2026.2 Help: Data editor and viewer (Windows and macOS keymaps) Data editor keys
- JetBrains — PhpStorm 2026.2 Help: Arrange tool windows (Windows and macOS keymaps) Maximize Tool Window, default layout
- JetBrains — PhpStorm 2026.2 Help: Terminal (Windows and macOS keymaps) Terminal tabs
- JetBrains — PhpStorm default keymap reference card (PDF linked from the 2026.2 help) The "Windows & Linux" heading; Delete to Word End and Delete to Word Start
- JetBrains — PhpStorm 2026.2 Help: Keyboard shortcut not working? (Windows and macOS keymaps) Shortcut conflicts on Ubuntu
- JetBrains — PhpStorm 2026.2 Help: Multiple cursors and selection ranges (Windows and macOS keymaps) How the Clone Caret double press works
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.
3 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.