Ctrl + F
Browse / PhpStorm Keyboard Shortcuts & Tips
PhpStorm Keyboard Shortcuts & Tips
A comprehensive cheat sheet highlighting essential keyboard shortcuts, tips, and tricks to boost your productivity in JetBrains PhpStorm.
General & Navigation
Find & Replace
|
Find in current file |
Ctrl + R |
Replace in current file |
Ctrl + Shift + F |
Find in Path (across project) |
Ctrl + Shift + R |
Replace in Path (across project) |
Ctrl + G |
Go to Line/Column |
F3 |
Find Next |
Shift + F3 |
Find Previous |
Ctrl + W |
Extend Selection |
Ctrl + Shift + W |
Shrink Selection |
Navigation
Shift + Shift |
Search Everywhere (Classes, Files, Actions, Symbols) |
Ctrl + E |
Recent Files popup |
Ctrl + Shift + E |
Recent Locations popup |
Alt + Left/Right |
Navigate Back/Forward |
Ctrl + Alt + Left/Right |
Navigate to Previous/Next Edit Location |
Ctrl + B or Ctrl + Click |
Go to Declaration/Usages |
Ctrl + Alt + B |
Go to Implementation(s) |
Ctrl + Shift + B |
Go to Type Declaration |
Alt + F7 |
Find Usages |
General Actions
Ctrl + Shift + A |
Find Action (search for any menu item/command) |
Ctrl + Alt + S |
Open Settings/Preferences |
Ctrl + Shift + N |
Go to File |
Ctrl + Alt + Shift + N |
Go to Symbol |
Alt + Home |
Show Navigation Bar |
F12 |
Go to Last Tool Window |
Shift + Esc |
Hide active Tool Window |
Ctrl + Shift + F12 |
Hide all Tool Windows |
Alt + #[1-9] |
Open specific Tool Window (e.g., 1 for Project) |
Editing & Code Completion
Basic Editing
Ctrl + D |
Duplicate Line or Block |
Ctrl + Y |
Delete Line at caret |
Ctrl + Shift + Up/Down |
Move Line Up/Down |
Ctrl + Alt + Shift + Up/Down |
Move Statement Up/Down |
Shift + Enter |
Start New Line After Current |
Ctrl + Alt + Enter |
Start New Line Before Current |
Ctrl + / |
Comment with Line Comment ( |
Ctrl + Shift + / |
Comment with Block Comment ( |
Alt + Shift + Insert |
Toggle Column Selection Mode |
Code Completion
Ctrl + Space |
Basic Code Completion |
Ctrl + Shift + Space |
Smart Type-Matching Completion |
Ctrl + Alt + Space |
Class Name Completion |
Ctrl + P |
Parameter Info (within method calls) |
Ctrl + Q |
Quick Documentation Lookup |
Ctrl + F1 |
Show Descriptions of Error/Warning at caret |
Alt + Insert |
Generate Code (Constructor, Getter, Setter, etc.) |
Ctrl + J |
Insert Live Template |
Ctrl + Shift + J |
Join Lines |
Code Manipulation
Ctrl + Alt + L |
Reformat Code |
Ctrl + Alt + I |
Auto-indent Lines |
Ctrl + Shift + V |
Paste from History |
Ctrl + Alt + T |
Surround With (e.g., if, loop, try/catch) |
Alt + Shift + T |
Refactor This (popup) |
Ctrl + Space (2 times) |
Show Inherited Members (Basic Completion) |
Ctrl + Alt + J |
Wrap Block in Custom Template |
F2 |
Go to Next Highlighted Error/Warning |
Shift + F2 |
Go to Previous Highlighted Error/Warning |
Refactoring & Inspection
Refactoring Actions
Shift + F6 |
Rename (Symbols, Files, etc.) |
Ctrl + Alt + N |
Inline (Variable, Method, etc.) |
Ctrl + Alt + M |
Extract Method |
Ctrl + Alt + V |
Extract Variable |
Ctrl + Alt + C |
Extract Constant |
Ctrl + Alt + F |
Extract Field |
F5 |
Copy File/Class |
F6 |
Move File/Class |
Alt + Delete |
Safe Delete |
Code Inspection & Analyze
Alt + Enter Show Intention Actions and Quick-Fixes at caret. This is one of the most useful shortcuts for applying suggestions. |
Ctrl + Shift + I Quick Definition Lookup: Shows definition of the symbol at caret without navigating away. |
Ctrl + Alt + Shift + I Run Inspection by Name…: Run a specific inspection on the current file or project. |
Ctrl + F12 File Structure Popup: Quickly navigate within the current file’s structure (methods, properties, etc.). |
Ctrl + Alt + Shift + L Code Cleanup…: Run code formatting and optimizing imports according to configured profiles. |
Analyze -> Inspect Code… Run full project analysis for potential issues. |
Debugging & Version Control
Debugging
Shift + F9 |
Debug |
Shift + F10 |
Run |
Ctrl + F8 |
Toggle Line Breakpoint |
Shift + Ctrl + F8 |
View Breakpoints Dialog |
F8 |
Step Over |
F7 |
Step Into |
Shift + F7 |
Smart Step Into (choose method when multiple calls on a line) |
Shift + F8 |
Step Out |
Alt + F9 |
Run to Cursor |
Alt + F8 |
Evaluate Expression |
Ctrl + F5 |
Resume Program |
Version Control (Git Focus)
Alt + 9 |
Open Git Tool Window |
Ctrl + K |
Commit Project |
Ctrl + T |
Update Project (Pull) |
Ctrl + Shift + K |
Push |
Alt + Shift + C |
Show Recent Changes popup |
Ctrl + V |
VCS Operations Popup |
Ctrl + Alt + Z |
Rollback… (Revert Changes) |
Right-Click on File/Folder -> Git -> Show History |
View file or folder history |