Development

PhpStorm keyboard shortcuts

Navigation, refactoring, debugging: the most useful PhpStorm shortcuts day to day, plus the Mac exceptions worth knowing.

Free Updated on September 11, 2026

Search and navigate

Shortcut (Windows/Linux) Action
Double Shift Search Everywhere
Ctrl+N Go to class
Ctrl+Shift+N Go to file
Ctrl+E Recent files
Ctrl+B or Ctrl+Click Go to declaration
Ctrl+Alt+← / Navigate back / forward through history
Alt+F7 Find usages

Edit

Shortcut (Windows/Linux) Action
Ctrl+Space Basic completion
Ctrl+Shift+Space Smart completion (expected type)
Alt+Enter Show intention actions / quick-fix
Ctrl+Alt+L Reformat code
Ctrl+D Duplicate line
Ctrl+/ Comment/uncomment line
Shift+F6 Rename (refactor)
Shift+Alt+↑ / Move line up / down

Find and replace

Shortcut (Windows/Linux) Action
Ctrl+F Find in file
Ctrl+R Replace in file
Ctrl+Shift+F Find in path (whole project)
Ctrl+Shift+R Replace in path (whole project)

Run and debug

Shortcut (Windows/Linux) Action
Shift+F10 Run
Shift+F9 Debug
F8 / F7 Step over / into
Ctrl+F8 Toggle breakpoint

On Mac, the general rule is CtrlCmd and AltOption for most of these shortcuts (e.g. Ctrl+D becomes Cmd+D).

Notable exceptions on Mac

A handful of shortcuts don't follow the general rule — worth knowing so you're not stuck guessing:

Action Windows/Linux macOS
Delete line Ctrl+Y Cmd+Backspace
Go to file Ctrl+Shift+N Cmd+Shift+O
Go to class Ctrl+N Cmd+O
Run Shift+F10 Ctrl+R
Debug Shift+F9 Ctrl+D

These exceptions exist because some Windows combinations conflict with macOS system shortcuts (Spotlight, Mission Control…).

#Shortcuts
navigate open Esc close