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.

Dev Tools·47 commands·Last updated 2026-07-21
Back to Dev Tools

PHP-specific 10

Cmd + N
Generate code (constructor, getter/setter, PHPDoc)
Cmd + Option + T
Surround with (if/for/try/PHPDoc)
Cmd + Option + M
Extract method
Cmd + Option + V
Extract variable
Cmd + Option + C
Extract constant
Cmd + P
Parameter info (view function params)
Cmd + B
Go to declaration
Cmd + U
Go to superclass/interface
Cmd + Option + B
Go to implementation
Cmd + Option + H
View type hierarchy

Laravel-specific 7

Cmd + Option + L
Laravel route jump
Cmd + Option + V
Laravel view jump
Cmd + Option + C
Laravel controller jump
Cmd + Option + M
Laravel model jump
Cmd + Option + P
Laravel config jump
Cmd + Option + R
Laravel translation jump
Cmd + Option + T
Laravel template jump

Database Tools 6

Cmd + Shift + F2
Open Database tool window
Cmd + Option + Return
New query console
Cmd + F9
Execute selected SQL
Cmd + Option + Shift + Enter
Execute all SQL
Cmd + U
View table structure
Cmd + Option + N
New table/view/stored procedure

Debug & Run 11

Ctrl + R
Run current configuration
Ctrl + D
Debug current configuration
Cmd + F2
Stop
F8
Step over
F7
Step into
Shift + F8
Step out
Alt + F9
Run to cursor
Cmd + F8
Toggle breakpoint
Cmd + Shift + F8
View all breakpoints
Cmd + Option + R
Resume program
Cmd + Option + E
Evaluate expression

Code Quality 9

F2
Next error
Shift + F2
Previous error
Cmd + Option + Shift + I
View inspection description
Cmd + Option + Ctrl + I
Quick documentation
Cmd + F1
Show error description
Cmd + Option + I
Auto-indent
Cmd + Option + L
Reformat code
Cmd + Option + O
Optimize imports
Ctrl + Option + Shift + N
Recent changes

Symfony-specific 4

Cmd + Option + D
Symfony route jump
Cmd + Option + T
Symfony service jump
Cmd + Option + Y
Symfony template jump
Cmd + Option + M
Symfony 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