Skip to main content

PHPStorm shortcuts

Your answer helps keep this page right.

Do these shortcuts work for you?

The Editing section has Code Completion, Context Actions, Parameter Info and Generate. The other sections cover navigation, search, running and debugging, refactoring and version control, and tool windows.

SetappAd
A shortcut to the best Mac apps

An essential toolbox for macOS and iOS.

Start with these

  • Code Completion
  • Context Actions
  • Parameter Info
  • Reformat Code
  • Find Action
  • Go To Declaration

Tips for PHPStorm

  • Extend Selection ⌥↑ and Shrink Selection ⌥↓ use the up and down arrow keys with the same modifier.
  • Reformat Code ⌥⌘L reformats the code.
  • Line Comment ⌘/ and Block Comment ⌥⌘/ comment code out, and back in.
Jump to section

Search & Navigation12

ActionShortcut
Search Everywhere
Find Action
Open Class
Open File
Open Symbol
Recent Files
Go To Declaration
Go To Implementation
Find Usages
Next Error
Navigate Back
Navigate Forward

Editing12

ActionShortcut
Duplicate Line
Delete Line
Complete Statement
Line Comment
Block Comment
Extend Selection
Shrink Selection
Context Actions
Reformat Code
Code Completion
Generate
Parameter Info

Find & Replace4

ActionShortcut
Find
Replace
Find In Path
Replace In Path

Run & Debug7

ActionShortcut
Run
Debug
Step Over
Step Into
Step Out
Toggle Breakpoint
Evaluate Expression

Refactoring & VCS6

ActionShortcut
Refactor This
Rename
Extract Variable
Extract Method
Commit
Vcs Operations

Tool Windows7

ActionShortcut
Project Window
Run Window
Debug Window
Structure Window
Vcs Window
Terminal
Settings
Report a problem

GitHub is public. Email is private.

Frequently Asked Questions

How many keyboard shortcuts does PHPStorm have on macOS?

PHPStorm has 48 keyboard shortcuts on macOS, organized into 6 sections: Search & Navigation, Editing, Find & Replace, Run & Debug, and more. This page lists all of them with searchable, organized shortcut tables.

Which PHPStorm shortcuts should I learn first?

Start with Code Completion (⌃Space), Context Actions (⌥↩), Parameter Info (⌘P), Reformat Code (⌥⌘L), Find Action (⇧⌘A), Go To Declaration (⌘B). The sections on this page list the rest.

Can I download PHPStorm shortcuts as a PDF?

Yes. Click the download button at the top of this page to generate a printable PDF cheat sheet with all 48 PHPStorm shortcuts. The PDF includes organized sections, keycap-style key labels, and space for your own notes.

Where is the official PHPStorm keyboard shortcuts documentation?

The official PHPStorm keyboard shortcuts documentation is available on their website. Every shortcut on this page is sourced from and verified against the official documentation to ensure accuracy.

Do these PHPStorm shortcuts work on all Mac keyboards?

Yes. These shortcuts work on all Mac keyboards, including MacBook built-in keyboards and external Apple keyboards. The modifier keys are Command (⌘), Option (⌥), Control (⌃), and Shift (⇧). On keyboards without a Function row, some F-key shortcuts may require holding the Fn key.

Maintained by

Access PHPStorm shortcuts from your menu bar

KeyShortcut detects the active app and shows its shortcuts instantly. Switch it on in Settings. No memorization needed.