90 JetBrains PhpStorm Keyboard Shortcuts

It’s every developer’s dream to be more efficient in the field of development. And the number one rule is to train yourself with keyboard shortcuts. PhpStorm comes with a vast set of features and PhpStorm Shortcuts that will help you streamline your workflow. PhpStorm is an integrated development environment for PHP and web designers.

The keymap in PhpStorm itself is considered a set of PhpStorm Shortcuts. Here, you will find a list of actions with their corresponding keyboard and mouse shortcuts. There might be conflicts with global shortcuts, so to avoid such conflicts, we have listed down the PhpStorm Shortcuts below. Download the PhpStorm Shortcuts list in PDF format.

Editing Shortcuts

ActionPhpStorm Shortcuts WindowsPhpStorm Shortcuts Mac
CopyCtrl + CCommand + C
PasteCtrl + VCommand + V
CutCtrl + XCommand + X
Generate CodeAlt + InsertOption + Insert
Override MethodsCtrl + OCommand + O
Implements MethodCtrl + ICommand + I
Basic Code CompletionCtrl + SpacebarCommand + Spacebar
Class name CompletionCtrl + Alt + SpacebarCommand + Option + Spacebar
Complete StatementCtrl + Shift + EnterCommand + Shift + Return
Quick Documentation LookupCtrl + QCommand + Q
Parameter InformationCtrl + PCommand + P
Move Line UpAlt + Shift + Up Arrow keyOption + Shift + Up Arrow key
Move Line DownAlt + Shift + Down Arrow keyOption + Shift + Down Arrow key
Surround With..Ctrl + Alt + TCommand + Option + T
Comment or Uncomment with Line CommentCtrl + /Command + /
Comment or Uncomment with Block CommentCtrl + Shift + /Command + Shift + /
Show Intention Actions and Quick FixesAlt + EnterOption + Return
Reformat CodeCtrl + Alt + LCommand + Option + L
Duplicate Current LineCtrl + DCommand + D
AutoIndent LinesCtrl + Alt + ICommand + Option + I
Delete line at caretCtrl + YCommand + Y
Start New lineShift + EnterShift + Return
Close Active Editor TabCtrl + F4Command + F4
Decrease Current Selection to Previous StateCtrl + Shift + WCommand + Shift + W
Select Successively Increasing Code blocksCtrl + WCommand + W
Expand Code blockCtrl + +Command + +
Collapse Code blockCtrl + –Command + –
Delete to end wordCtrl + DeleteCommand + Delete
Delete to Word and startCtrl + BackspaceCommand + Backspace
Select till the code block endCtrl + Shift + ]Command + Shift + ]
Select till the code block startsCtrl + Shift + [Command + Shift + [
Switch case for Word at CaretCtrl + Shift + UCommand + Shift + U

Navigation Shortcuts

ActionPhpstorm Shortcuts WindowsPhpstorm Shortcuts Mac
Go to ClassCtrl + NCommand + N
Go to FileCtrl + Shift + NCommand + Shift + N
Go to SymbolCtrl + Alt + Shift + NCommand + Option + Shift + N
Next highlighted ErrorF2F2
Previous highlighted ErrorShift + F2Shift + F2
Go to LineCtrl + GCommand + G
Recent files PopupCtrl + ECommand + E
Select current fileAlt + F1Option + F1
Go to the Next TabAlt + Left Arrow keyOption + Left Arrow key
Go to the Previous TabAlt + Right Arrow keyOption + Right Arrow key
Go to DeclarationCtrl + BCommand + B
Go to ImplementationCtrl + Alt + BCommand + Option + B
Go to Type DeclarationCtrl + Shift + BCommand + Shift + B
Navigate backCtrl + Alt + Left Arrow keyCommand + Option + Left Arrow key
Navigate forwardCtrl + Alt + Right Arrow keyCommand + Option + Right Arrow key
Go to super method or superclassCtrl + UCommand + U
Move to code block endCtrl + ]Command + ]
Move to code block startCtrl + [Command + [
Go to Previous MethodAlt + Up Arrow keyOption + Up Arrow key
Go to the Next MethodAlt + Down Arrow keyOption + Down Arrow key
Show Navigation barAlt + Home keyOption + Home key
Edit SourceF4F4
View SourceCtrl + EnterCommand + Return

Debugging Shortcuts

ActionPhpstorm Shortcuts WindowsPhpstorm Shortcuts Mac
Step OutShift + F8Shift + F8
Step OverF8F8
Step IntoF7F7
Evaluate ExpressionAlt + F8Option + F8
Toggle BreakpointCtrl + F8Command + F8
View BreakpointsCtrl + Shift + F8Command + Shift + F8
Resume ProgramF9F9

Compile and Run Shortcuts

ActionPhpstorm Shortcut keys WindowsPhpstorm Shortcut keys Mac
Run Command LineCtrl + Shift + XCommand + Shift + X
RunShift + F10Shift + F10
DebugShift + F9Shift + F9
Run Context Editor from EditorCtrl + Shift + F10Command + Shift + F10

Find & Replace Shortcuts

ActionPhpstorm Shortcuts WindowsPhpstorm Shortcuts Mac
FindCtrl + FCommand + F
ReplaceCtrl + RShift + F10
Find NextF3F3
Find PreviousShift + F3Shift + F3
Find in PathCtrl + Shift + FCommand + Shift + F
Replace in PathCtrl + Shift + RCommand + Shift + R

Refactoring Shortcuts

ActionPhpstorm Shortcut keys WindowsPhpstorm Shortcut keys Mac
CopyF5F5
MoveF6F6
RenameShift + F6Shift + F6
Safe DeleteAlt + DeleteOption + Delete
Inline VariableCtrl + Alt + NCommand + Option + N
Extract MethodCtrl + Alt + MCommand + Option + M
Extract FieldCtrl + Alt + FCommand + Option + F
Extract ConstantCtrl + Alt + CCommand + Option + C
Extract VariableCtrl + Alt + VCommand + Option + V

Other JetBrains PhpStorm Shortcuts

ActionPhpstorm Shortcut keys WindowsPhpstorm Shortcut keys Mac
Find Usage in FileCtrl + F7Command + F7
Find UsageAlt + F7Option + F7
Highlight Usage in FileCtrl + Shift + F7Command + Shift + F7
Show UsageCtrl + Alt + F7Command + Option + F7
Commit Project to VCSCtrl + KCommand + K
Update Project from VCSCtrl + TCommand + T
View Recent ChangesCtrl + Shift + ECommand + Shift + E
VCS Operations PopupAlt + ‘Option + ‘
Insert Live TemplateCtrl + JCommand + J

Everyone has their favorite code editors, and mine is PhpStorm. It’s a powerhouse packed with productive features and is different from the standard text editor. Visual Studio Code is another high-standard text editor, but it doesn’t quite match up to PhpStorm’s standards. Take a look at the Visual Studio Code Shortcuts list here.

READ NEXT:

Back to top button