PhpStorm Keyboard Shortcuts: Complete Cheat Sheet for Windows, Mac & Linux
PhpStorm shortcuts are keyboard combinations that trigger IDE actions editing, navigation, debugging, refactoring, and version control without reaching for the mouse. Learning them is the single fastest way to speed up PHP development, because they keep your hands on the keyboard and your attention on the code.
This guide lists every essential PhpStorm hotkey for Windows, Linux, and macOS, explains the handful worth memorizing first, and shows you how to find or remap any shortcut yourself. A free printable PDF cheat sheet is linked at the end.
The 10 PhpStorm Shortcuts Worth Memorizing First
You don’t need all 90 on day one. These ten cover the actions most developers repeat hundreds of times a day, and learning them first gives the biggest productivity return.
- Double Shift – Search Everywhere. Find any file, class, symbol, action, or setting in one box. The single most useful shortcut in the IDE.
- Ctrl + Shift + A / Cmd + Shift + A – Find Action. Search every command and setting by name and run it. If you forget any other shortcut, this finds it.
- Alt + Enter / Option + Enter – Show Context Actions. Quick-fixes for errors, missing imports, and code improvements right where your caret sits.
- Ctrl + / / Cmd + / – Comment line. Toggle a line comment instantly.
- Ctrl + Alt + L / Cmd + Option + L – Reformat code. Clean up indentation and spacing to your code-style settings.
- Ctrl + B / Cmd + B – Go to Declaration. Jump straight to where a class, method, or variable is defined.
- Ctrl + E / Cmd + E – Recent Files. Hop between the files you were just in without touching the project tree.
- Shift + F6 – Rename. Safely rename a symbol everywhere it’s used.
- Ctrl + W / Cmd + W – Extend Selection. Expand the selection by code structure; Ctrl + Shift + W shrinks it back.
- Alt + F7 / Option + F7 – Find Usages. See every place a method or variable is used across the project.
Editing Shortcuts
| Action | Windows / Linux | Mac |
|---|---|---|
| Copy | Ctrl + C | Command + C |
| Paste | Ctrl + V | Command + V |
| Cut | Ctrl + X | Command + X |
| Generate code | Alt + Insert | Command + N |
| Override methods | Ctrl + O | Command + O |
| Implement methods | Ctrl + I | Command + I |
| Basic code completion | Ctrl + Space | Control + Space |
| Class name completion | Ctrl + Alt + Space | Control + Option + Space |
| Complete statement | Ctrl + Shift + Enter | Command + Shift + Enter |
| Quick documentation lookup | Ctrl + Q | F1 |
| Parameter Info | Ctrl + P | Command + P |
| Show context actions / quick-fixes | Alt + Enter | Option + Enter |
| Reformat code | Ctrl + Alt + L | Command + Option + L |
| Auto-indent lines | Ctrl + Alt + I | Control + Option + I |
| Duplicate current line | Ctrl + D | Command + D |
| Delete line at caret | Ctrl + Y | Command + Delete |
| Move line up | Shift + Alt + Up | Shift + Option + Up |
| Move line down | Shift + Alt + Down | Shift + Option + Down |
| Start a new line | Shift + Enter | Shift + Enter |
| Comment / uncomment line | Ctrl + / | Command + / |
| Comment / uncomment block | Ctrl + Shift + / | Command + Option + / |
| Surround with… | Ctrl + Alt + T | Command + Option + T |
| Extend selection | Ctrl + W | Option + Up |
| Shrink selection | Ctrl + Shift + W | Option + Down |
| Switch case for word at caret | Ctrl + Shift + U | Command + Shift + U |
| Close active editor tab | Ctrl + F4 | Command + W |
Navigation Shortcuts
| Action | Windows / Linux | Mac |
|---|---|---|
| Search Everywhere | Double Shift | Double Shift |
| Go to Class | Ctrl + N | Command + O |
| Go to File | Ctrl + Shift + N | Command + Shift + O |
| Go to Symbol | Ctrl + Alt + Shift + N | Command + Option + O |
| Go to Line | Ctrl + G | Command + L |
| Recent Files popup | Ctrl + E | Command + E |
| Recent Locations | Ctrl + Shift + E | Command + Shift + E |
| Go to Declaration | Ctrl + B | Command + B |
| Go to Implementation | Ctrl + Alt + B | Command + Option + B |
| Go to Type Declaration | Ctrl + Shift + B | Command + Shift + B |
| Go to super method / superclass | Ctrl + U | Command + U |
| Navigate back | Ctrl + Alt + Left | Command + Option + Left |
| Navigate forward | Ctrl + Alt + Right | Command + Option + Right |
| Next highlighted error | F2 | F2 |
| Previous highlighted error | Shift + F2 | Shift + F2 |
| Previous method | Alt + Up | Control + Up |
| Next method | Alt + Down | Control + Down |
| Move to code block end | Ctrl + ] | Command + ] |
| Move to code block start | Ctrl + [ | Command + [ |
| Show navigation bar | Alt + Home | Option + Home |
| File structure popup | Ctrl + F12 | Command + F12 |
Debugging Shortcuts
| Action | Windows / Linux | Mac |
|---|---|---|
| Toggle breakpoint | Ctrl + F8 | Command + F8 |
| Step over | F8 | F8 |
| Step into | F7 | F7 |
| Step out | Shift + F8 | Shift + F8 |
| Resume program | F9 | Option + Command + R |
| Evaluate expression | Alt + F8 | Option + F8 |
| View breakpoints | Ctrl + Shift + F8 | Command + Shift + F8 |
Run & Compile Shortcuts
| Action | Windows / Linux | Mac |
|---|---|---|
| Run | Shift + F10 | Control + R |
| Debug | Shift + F9 | Control + D |
| Run context configuration from editor | Ctrl + Shift + F10 | Control + Shift + R |
| Open terminal | Alt + F12 | Alt + F12 |
Find & Replace Shortcuts
| Action | Windows / Linux | Mac |
|---|---|---|
| Find | Ctrl + F | Command + F |
| Replace | Ctrl + R | Command + R |
| Find Next | F3 | Command + G |
| Find Previous | Shift + F3 | Command + Shift + G |
| Find in Files (path) | Ctrl + Shift + F | Command + Shift + F |
| Replace in Files (path) | Ctrl + Shift + R | Command + Shift + R |
Refactoring Shortcuts
| Action | Windows / Linux | Mac |
|---|---|---|
| Refactor This (all options) | Ctrl + Alt + Shift + T | Control + T |
| Rename | Shift + F6 | Shift + F6 |
| Copy | F5 | F5 |
| Move | F6 | F6 |
| Safe Delete | Alt + Delete | Command + Delete |
| Extract Method | Ctrl + Alt + M | Command + Option + M |
| Extract Variable | Ctrl + Alt + V | Command + Option + V |
| Extract Field | Ctrl + Alt + F | Command + Option + F |
| Extract Constant | Ctrl + Alt + C | Command + Option + C |
| Inline | Ctrl + Alt + N | Command + Option + N |
Usage Search & Version Control
| Action | Windows / Linux | Mac |
|---|---|---|
| Find Usages | Alt + F7 | Option + F7 |
| Find Usages in File | Ctrl + F7 | Command + F7 |
| Highlight usages in file | Ctrl + Shift + F7 | Command + Shift + F7 |
| Show Usages | Ctrl + Alt + F7 | Command + Option + F7 |
| Commit to VCS | Ctrl + K | Command + K |
| Update project from VCS | Ctrl + T | Command + T |
| VCS Operations popup | Alt + ` | Control + ` |
| Insert Live Template | Ctrl + J | Command + J |
How to Find Any PhpStorm Shortcut
You never have to memorize a shortcut you’ve forgotten. PhpStorm has two built-in ways to surface them:
- Find Action (Ctrl + Shift + A / Cmd + Shift + A): start typing the name of any command “reformat,” “split,” “terminal” — and PhpStorm shows the action along with its assigned shortcut. Press Enter to run it.
- Key Promoter X (a free plugin): whenever you do something with the mouse that has a keyboard equivalent, it pops up the shortcut you could have used. It’s the fastest way to build muscle memory.
How to Customize or Remap a PhpStorm Shortcut
If a default binding conflicts with an OS shortcut or you simply prefer your own, remap it in five steps:
- Open Settings with Ctrl + Alt + S (Command + , on Mac).
- Select Keymap from the left panel.
- Search for the action by name in the search box.
- Right-click the action and choose Add Keyboard Shortcut.
- Press your desired key combination, resolve any conflict warning, then click Apply.
Predefined keymaps can’t be edited directly PhpStorm automatically creates an editable copy the moment you change a binding. You can also switch to a keymap that matches another editor (Eclipse, NetBeans, or VS Code) from the same screen.
Download the PhpStorm Shortcuts PDF
Keep the full list on your desk: Download the PhpStorm Shortcuts Cheat Sheet (PDF).
Frequently Asked Questions
What is the shortcut to go to a specific line in PhpStorm?
Press Ctrl + G on Windows and Linux, or Command + L on Mac. Type the line number (optionally line:column) and press Enter.
How do I open the terminal in PhpStorm?
Press Alt + F12 on Windows, Linux, and Mac. The same shortcut closes the terminal and returns focus to the editor.
How do I comment out code in PhpStorm?
Use Ctrl + / (Command + / on Mac) for a single-line comment, or Ctrl + Shift + / (Command + Option + / on Mac) for a block comment.
How do I reformat code in PhpStorm?
Press Ctrl + Alt + L (Command + Option + L on Mac). It applies your project’s code style to the current file or selection.
How do I see all keyboard shortcuts in PhpStorm?
Open Settings (Ctrl + Alt + S) and select Keymap to browse and search every binding, or print the official reference card from Help → Keyboard Shortcuts PDF.
Can I use VS Code or Eclipse shortcuts in PhpStorm?
Yes. Go to Settings → Keymap and choose a predefined keymap such as VS Code, Eclipse, or NetBeans, or install one from the Marketplace.
What is Search Everywhere and how do I open it?
Search Everywhere is a unified search for files, classes, symbols, actions, and settings. Open it by pressing Shift twice quickly.
How do I remap a shortcut that conflicts with my OS?
In Settings → Keymap, find the action, right-click it, choose Add Keyboard Shortcut, and assign a new combination. PhpStorm warns you of conflicts before saving.
Conclusion
PhpStorm rewards developers who keep their hands on the keyboard. You don’t have to learn all ninety shortcuts at once start with the ten in the memorize-first list, lean on Find Action (Ctrl + Shift + A) and Search Everywhere (Double Shift) whenever you’re stuck, and let Key Promoter X teach you the rest as you work. Within a week the most common ones become reflex, and your editing speed climbs noticeably.
READ NEXT:





