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.

  1. Double Shift – Search Everywhere. Find any file, class, symbol, action, or setting in one box. The single most useful shortcut in the IDE.
  2. 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.
  3. Alt + Enter / Option + Enter – Show Context Actions. Quick-fixes for errors, missing imports, and code improvements right where your caret sits.
  4. Ctrl + / / Cmd + / – Comment line. Toggle a line comment instantly.
  5. Ctrl + Alt + L / Cmd + Option + L – Reformat code. Clean up indentation and spacing to your code-style settings.
  6. Ctrl + B / Cmd + B – Go to Declaration. Jump straight to where a class, method, or variable is defined.
  7. Ctrl + E / Cmd + E – Recent Files. Hop between the files you were just in without touching the project tree.
  8. Shift + F6 – Rename. Safely rename a symbol everywhere it’s used.
  9. Ctrl + W / Cmd + W – Extend Selection. Expand the selection by code structure; Ctrl + Shift + W shrinks it back.
  10. Alt + F7 / Option + F7 – Find Usages. See every place a method or variable is used across the project.

Editing Shortcuts

ActionWindows / LinuxMac
CopyCtrl + CCommand + C
PasteCtrl + VCommand + V
CutCtrl + XCommand + X
Generate codeAlt + InsertCommand + N
Override methodsCtrl + OCommand + O
Implement methodsCtrl + ICommand + I
Basic code completionCtrl + SpaceControl + Space
Class name completionCtrl + Alt + SpaceControl + Option + Space
Complete statementCtrl + Shift + EnterCommand + Shift + Enter
Quick documentation lookupCtrl + QF1
Parameter InfoCtrl + PCommand + P
Show context actions / quick-fixesAlt + EnterOption + Enter
Reformat codeCtrl + Alt + LCommand + Option + L
Auto-indent linesCtrl + Alt + IControl + Option + I
Duplicate current lineCtrl + DCommand + D
Delete line at caretCtrl + YCommand + Delete
Move line upShift + Alt + UpShift + Option + Up
Move line downShift + Alt + DownShift + Option + Down
Start a new lineShift + EnterShift + Enter
Comment / uncomment lineCtrl + /Command + /
Comment / uncomment blockCtrl + Shift + /Command + Option + /
Surround with…Ctrl + Alt + TCommand + Option + T
Extend selectionCtrl + WOption + Up
Shrink selectionCtrl + Shift + WOption + Down
Switch case for word at caretCtrl + Shift + UCommand + Shift + U
Close active editor tabCtrl + F4Command + W

Navigation Shortcuts

ActionWindows / LinuxMac
Search EverywhereDouble ShiftDouble Shift
Go to ClassCtrl + NCommand + O
Go to FileCtrl + Shift + NCommand + Shift + O
Go to SymbolCtrl + Alt + Shift + NCommand + Option + O
Go to LineCtrl + GCommand + L
Recent Files popupCtrl + ECommand + E
Recent LocationsCtrl + Shift + ECommand + Shift + E
Go to DeclarationCtrl + BCommand + B
Go to ImplementationCtrl + Alt + BCommand + Option + B
Go to Type DeclarationCtrl + Shift + BCommand + Shift + B
Go to super method / superclassCtrl + UCommand + U
Navigate backCtrl + Alt + LeftCommand + Option + Left
Navigate forwardCtrl + Alt + RightCommand + Option + Right
Next highlighted errorF2F2
Previous highlighted errorShift + F2Shift + F2
Previous methodAlt + UpControl + Up
Next methodAlt + DownControl + Down
Move to code block endCtrl + ]Command + ]
Move to code block startCtrl + [Command + [
Show navigation barAlt + HomeOption + Home
File structure popupCtrl + F12Command + F12

Debugging Shortcuts

ActionWindows / LinuxMac
Toggle breakpointCtrl + F8Command + F8
Step overF8F8
Step intoF7F7
Step outShift + F8Shift + F8
Resume programF9Option + Command + R
Evaluate expressionAlt + F8Option + F8
View breakpointsCtrl + Shift + F8Command + Shift + F8

Run & Compile Shortcuts

ActionWindows / LinuxMac
RunShift + F10Control + R
DebugShift + F9Control + D
Run context configuration from editorCtrl + Shift + F10Control + Shift + R
Open terminalAlt + F12Alt + F12

Find & Replace Shortcuts

ActionWindows / LinuxMac
FindCtrl + FCommand + F
ReplaceCtrl + RCommand + R
Find NextF3Command + G
Find PreviousShift + F3Command + Shift + G
Find in Files (path)Ctrl + Shift + FCommand + Shift + F
Replace in Files (path)Ctrl + Shift + RCommand + Shift + R

Refactoring Shortcuts

ActionWindows / LinuxMac
Refactor This (all options)Ctrl + Alt + Shift + TControl + T
RenameShift + F6Shift + F6
CopyF5F5
MoveF6F6
Safe DeleteAlt + DeleteCommand + Delete
Extract MethodCtrl + Alt + MCommand + Option + M
Extract VariableCtrl + Alt + VCommand + Option + V
Extract FieldCtrl + Alt + FCommand + Option + F
Extract ConstantCtrl + Alt + CCommand + Option + C
InlineCtrl + Alt + NCommand + Option + N

Usage Search & Version Control

ActionWindows / LinuxMac
Find UsagesAlt + F7Option + F7
Find Usages in FileCtrl + F7Command + F7
Highlight usages in fileCtrl + Shift + F7Command + Shift + F7
Show UsagesCtrl + Alt + F7Command + Option + F7
Commit to VCSCtrl + KCommand + K
Update project from VCSCtrl + TCommand + T
VCS Operations popupAlt + `Control + `
Insert Live TemplateCtrl + JCommand + 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:

  1. Open Settings with Ctrl + Alt + S (Command + , on Mac).
  2. Select Keymap from the left panel.
  3. Search for the action by name in the search box.
  4. Right-click the action and choose Add Keyboard Shortcut.
  5. 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:

Pratik

Pratik is the founder of Tutorial Tactic and a productivity tools specialist with 15 years of hands-on experience in Google Workspace, Microsoft Office, and software automation. He has published over 1,500 guides on keyboard shortcuts, software commands, how-to tutorials and workflow optimization, helping readers across the US and India work faster with the tools they use every day. Tutorial Tactic was founded in 2021 with one goal: cut through the noise and give readers exactly what they need fast, verified, and beginner-friendly.
Back to top button