PhpStorm Cheatsheet - PHP IDE Shortcut Reference
All essential PhpStorm commands organized by use case, with 47+ entries you can copy and run directly. Find the right command fast when you need it.
Back to Dev ToolsPHP-specific 10
Cmd + NGenerate code (constructor, getter/setter, PHPDoc)
Cmd + Option + TSurround with (if/for/try/PHPDoc)
Cmd + Option + MExtract method
Cmd + Option + VExtract variable
Cmd + Option + CExtract constant
Cmd + PParameter info (view function params)
Cmd + BGo to declaration
Cmd + UGo to superclass/interface
Cmd + Option + BGo to implementation
Cmd + Option + HView type hierarchy
Laravel-specific 7
Cmd + Option + LLaravel route jump
Cmd + Option + VLaravel view jump
Cmd + Option + CLaravel controller jump
Cmd + Option + MLaravel model jump
Cmd + Option + PLaravel config jump
Cmd + Option + RLaravel translation jump
Cmd + Option + TLaravel template jump
Database Tools 6
Cmd + Shift + F2Open Database tool window
Cmd + Option + ReturnNew query console
Cmd + F9Execute selected SQL
Cmd + Option + Shift + EnterExecute all SQL
Cmd + UView table structure
Cmd + Option + NNew table/view/stored procedure
Debug & Run 11
Ctrl + RRun current configuration
Ctrl + DDebug current configuration
Cmd + F2Stop
F8Step over
F7Step into
Shift + F8Step out
Alt + F9Run to cursor
Cmd + F8Toggle breakpoint
Cmd + Shift + F8View all breakpoints
Cmd + Option + RResume program
Cmd + Option + EEvaluate expression
Code Quality 9
F2Next error
Shift + F2Previous error
Cmd + Option + Shift + IView inspection description
Cmd + Option + Ctrl + IQuick documentation
Cmd + F1Show error description
Cmd + Option + IAuto-indent
Cmd + Option + LReformat code
Cmd + Option + OOptimize imports
Ctrl + Option + Shift + NRecent changes
Symfony-specific 4
Cmd + Option + DSymfony route jump
Cmd + Option + TSymfony service jump
Cmd + Option + YSymfony template jump
Cmd + Option + MSymfony model jump
Tips
- PhpStorm is built on the IntelliJ platform; most shortcuts match WebStorm and IDEA.
- Cmd+N generates code: choose constructor, getter/setter, PHPDoc, etc. - faster than writing by hand.
- The Laravel Plugin provides quick jumps for routes, views, and controllers.
- Database tools connect directly to MySQL and PostgreSQL without switching to Navicat.
- After configuring Xdebug, Ctrl+D starts debugging; F7/F8 step through PHP code.
- Cmd+Option+L reformats code; you can configure PSR-1/PSR-2/PSR-12 in settings.
Official References
Commands are compiled from the official docs below. Click to verify the latest usage.
Maintained by LaoHand
Publicly updated on Jul 21, 2026, continuously proofread against official docs.
Contact Us
Wrong command or description? Send us corrections, business inquiries or product feedback by email.
Contact Us