PhpStorm Keyboard Shortcuts

Complete PhpStorm keyboard shortcuts reference — 97 shortcuts across 7 categories. Quick reference cheat sheet for Windows & Linux.

PhpStorm shares the JetBrains default keymap with IntelliJ IDEA, so if you have read the IntelliJ page on this site you already know most of this table. What follows is written for the PHP workflow specifically — where the completion, navigation and run keys pay off in a Laravel or Symfony project — rather than repeating the general tour. The table is the Windows/Linux keymap; macOS uses Cmd.

General (9)

ShortcutAction
Shift + ShiftSearch Everywhere
Ctrl + Shift + AFind Action
Alt + 1Open Tool Window
Ctrl + Alt + F11Toggle Full Screen
Ctrl + Shift + F12Toggle Maximizing Editor
Alt + Shift + FAdd to Favorites
Alt + Shift + IInspect Current File
Ctrl + Alt + SOpen Settings
Ctrl + TabSwitcher

Editing (29)

ShortcutAction
Ctrl + SpaceBasic Code Completion
Alt + EnterShow Intention Actions
Ctrl + PParameter Info
Ctrl + QQuick Documentation
Alt + InsertGenerate Code
Ctrl + OOverride Methods
Ctrl + IImplement Methods
Ctrl + Alt + TSurround With
Ctrl + JInsert Live Template
Ctrl + /Line Comment
Ctrl + Shift + /Block Comment
Ctrl + WExtend Selection
Ctrl + Shift + WShrink Selection
Ctrl + Alt + LReformat Code
Ctrl + Alt + IAuto-Indent Lines
Ctrl + DDuplicate Line
Ctrl + YDelete Line
Ctrl + Shift + JSmart Line Join
Ctrl + EnterSmart Line Split
Shift + EnterStart New Line
Ctrl + Shift + UToggle Case
Ctrl + Shift + ]Select to Block End
Ctrl + Shift + [Select to Block Start
Ctrl + DeleteDelete to Word End
Ctrl + BackspaceDelete to Word Start
Ctrl + Numpad +Expand Code Block
Ctrl + Numpad -Collapse Code Block
Ctrl + Shift + VPaste from History
Ctrl + F4Close Editor Tab

Navigation (24)

ShortcutAction
Ctrl + NGo to Class
Ctrl + Shift + NGo to File
Ctrl + Alt + Shift + NGo to Symbol
Ctrl + GGo to Line
Alt + RightNext Editor Tab
Alt + LeftPrevious Editor Tab
EscGo to Editor
Ctrl + ERecent Files
Ctrl + Alt + LeftNavigate Back
Ctrl + Alt + RightNavigate Forward
Ctrl + Shift + BackspaceLast Edit Location
Alt + F1Select In
Ctrl + BGo to Declaration
Ctrl + Alt + BGo to Implementation
Ctrl + Shift + IQuick Definition
Ctrl + Shift + BGo to Type Declaration
Ctrl + UGo to Super Method
Alt + UpPrevious Method
Alt + DownNext Method
Ctrl + ]Move to Block End
Ctrl + [Move to Block Start
F2Next Highlighted Error
Shift + F2Previous Highlighted Error
F4Edit Source

Search & Replace (10)

ShortcutAction
Ctrl + FFind
Ctrl + RReplace
F3Find Next
Shift + F3Find Previous
Ctrl + Shift + FFind in Path
Ctrl + Shift + RReplace in Path
Alt + F7Find Usages
Ctrl + F7Find Usages in File
Ctrl + Shift + F7Highlight Usages in File
Ctrl + Alt + F7Show Usages

Refactoring (10)

ShortcutAction
Ctrl + Alt + Shift + TRefactor This
F5Copy
F6Move
Alt + DeleteSafe Delete
Shift + F6Rename
Ctrl + Alt + NInline Variable
Ctrl + Alt + MExtract Method
Ctrl + Alt + VExtract Variable
Ctrl + Alt + FExtract Field
Ctrl + Alt + CExtract Constant

Running & Debugging (11)

ShortcutAction
Shift + F10Run
Shift + F9Debug
Ctrl + Shift + F10Run Context Configuration
Ctrl + Shift + XRun Command Line
F8Step Over
F7Step Into
Shift + F8Step Out
Alt + F8Evaluate Expression
F9Resume Program
Ctrl + F8Toggle Breakpoint
Ctrl + Shift + F8View Breakpoints

Version Control (4)

ShortcutAction
Alt + `VCS Operations Popup
Ctrl + KCommit
Ctrl + TUpdate Project
Alt + Shift + CView Recent Changes
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

IntelliJ IDEA WebStorm PyCharm VS Code Sublime Text JetBrains Rider

Search 18,500+ shortcuts across 268 platforms

Explore All Platforms Practice Shortcuts
📜 Every shortcut on this page is taken from the official PhpStorm documentation — resources.jetbrains.com
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

Where the JetBrains keys land in PHP

Ctrl + N opens a class by name — including vendor classes under Composer — while a function or method anywhere in the project is one Ctrl + Alt + Shift + N away. Pressing Ctrl + B on a method call goes to its declaration, and on a Laravel facade or a route name it resolves through the framework plugin. Concrete classes behind an interface are listed with Ctrl + Alt + B, which is how you find the concrete class bound in a container. Ctrl + Shift + I shows a quick definition popup without leaving the file, and Ctrl + Q the PHPDoc.

Generating code

Alt + Insert generates constructors, getters and setters, and PHPDoc blocks; Ctrl + O overrides parent methods and Ctrl + I implements interface methods with correct signatures and return types. Ctrl + J inserts a live template — fore for a foreach, pubf for a public function — and Ctrl + Alt + T surrounds a selection with if, try/catch or a closure. Alt + Enter offers the fixes the inspections propose: add a missing use statement, declare a type, extract a variable.

Running, debugging and version control

The current configuration runs on Shift + F10 and debugs on Shift + F9, which for PHP is usually a PHPUnit test or a script with Xdebug listening. a single test method under the cursor runs directly with Ctrl + Shift + F10 without creating a configuration. The step keys are F8, F7, Shift + F8 and F9 to resume; Alt + F8 evaluates an expression against the paused request. Alt + ` opens the VCS popup, Ctrl + K commits and Ctrl + T pulls (Update Project).

Frequently asked questions

Are PhpStorm shortcuts the same as IntelliJ IDEA?

Yes. PhpStorm uses the JetBrains default keymap; the PHP-specific parts are what the keys operate on, not the keys themselves.

How do I run a single PHPUnit test?

Put the cursor in the test method and press Ctrl + Shift + F10. PhpStorm creates and runs a configuration for that method.

How do I add a missing use statement?

Press Alt + Enter on the unresolved class name and choose Import class. Ctrl + Alt + O optimises existing imports.

How do I find which class implements an interface?

Ctrl + Alt + B on the interface name lists implementations; Alt + F7 finds usages.

🤖 Ask AI about PhpStorm shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok