PhpStorm HotKey Cheatsheet

PhpStorm is a leading IDE for PHP developers, offering powerful tools and an intuitive interface to streamline coding workflows. Mastering shortcut keys in PhpStorm can significantly boost your productivity and reduce reliance on the mouse.

PhpStorm Windows Shortcut Keys

Editing

ShortcutAction
CtrlSpaceBasic code completion
AltEnterShow intention actions and quick-fixes
CtrlPParameter info (within method call arguments)
CtrlQQuick documentation lookup
Ctrl(mouse over code)Brief Info
AltInsertGenerate code... (Getters, Setters, Constructors)
CtrlOOverride methods
CtrlIImplement methods
CtrlAltTSurround with...(if..else, try..catch, for, etc.)
Ctrl/Comment/uncomment with line comment
CtrlShift/Comment/uncomment with block comment
CtrlWSelect successively increasing code blocks
CtrlShiftWDecrease current selection to previous state
CtrlAltLReformat code
CtrlAltIAuto-indent line(s)
CtrlDDuplicate current line or selected block
CtrlYDelete line at caret
CtrlShiftJSmart line join (HTML and JavaScript only)
CtrlEnterSmart line split (HTML and JavaScript only)
ShiftEnterStart a new line
CtrlShiftUToggle case for word at caret or selected block
CtrlShift[Select till code block start
CtrlShift]Select till code block end
CtrlDeleteDelete to word end
CtrlBackspaceDelete to word start
Ctrl+/-Expand/collapse code block
CtrlF4Close active editor tab
CtrlShiftVPaste from history

Debugging

ShortcutAction
F8Step over
F7Step into
ShiftF8Step out
AltF8Evaluate expression
F9Resume program
CtrlF8Toggle breakpoint
CtrlShiftF8View breakpoints

Running

ShortcutAction
ShiftF10Run
ShiftF9Debug
CtrlShiftF10Run context configuration from editor
CtrlShiftXRun command line

Search/Replace

ShortcutAction
CtrlF/RFind/Replace
F3Find next
ShiftF3Find previous
CtrlShiftF/RFind/Replace in path

Usage Search

ShortcutAction
AltF7Find usages
CtrlF7Find usages in file
CtrlShiftF7Highlight usages in file
CtrlAltF7Show usages

Navigation

ShortcutAction
CtrlNGo to class
CtrlShiftNGo to file
CtrlShiftAltNGo to symbol
CtrlGGo to line
AltLeft/RightGo to next/previous editor tab
EscGo to editor (from tool window)
CtrlERecent files popup
CtrlAltLeft/RightNavigate back/forward
CtrlShiftBackspaceNavigate to last edit location
AltF1Select current file or symbol in any view
CtrlBGo to declaration
CtrlAltBGo to implementation(s)
CtrlShiftIOpen quick definition lookup
CtrlShiftBGo to type declaration
CtrlUGo to super-method/super-class
AltUp/DownGo to previous/next method
Ctrl]/[Move to code block end/start
F2Next highlighted error
ShiftF2Previous highlighted error
F4Edit/view source

Refactoring

ShortcutAction
F5/F6Copy/Move
AltDeleteSafe delete
ShiftF6Rename
CtrlAltNInline variable
CtrlAltM/V/F/CExtract Method/Variable/Field/Constant
CtrlAltShiftTRefactor This (shows all available refactorings)

VCS/Local History

ShortcutAction
Alt`VCS quick popup
CtrlKCommit project to VCS
CtrlTUpdate project from VCS
AltShiftCView recent changes

General

ShortcutAction
Shift x2Search everywhere
CtrlShiftAFind Action
Alt1-9Open corresponding tool window
CtrlAltF11Toggle full screen mode
CtrlShiftF12Toggle maximizing editor
AltShiftFAdd to Favorites
AltShiftIInspect current file with current profile
CtrlAltSOpen Settings dialog
CtrlTabSwitch between tabs and tool window

Live Templates/Snippets

ShortcutAction
CtrlJInsert Live Template
eco'echo' statement
foreforeach(iterable_expr as $value) {...}
forekforeach(iterable_expr as $key => $value) {...}
inc/inco'include'/'include_once' statement
prifprivate function
profprotected function
pubfpublic function
rqr/rqro'require'/'require_once' statement

Misc

ShortcutAction
CtrlShiftAFind Action

Download PhpStorm Windows Shortcut Keys Cheatsheet PDF

We provide a PhpStorm Windows Shortcut Keys PDF download feature. Click the download button to get the file. Please note that generating the PDF may take some time, so please be patient. Download

PhpStorm MacOS Shortcut Keys

General Navigation

Shortcut KeyDescription
Command+EView recent files
Command+Shift+EView recently edited files
Control+Left / Control+RightNavigate between tabs
Command+ONavigate to class
Command+Shift+ONavigate to file
Command+Shift+TNavigate to test
Command+F12Show file structure
Command+1 to Command+9Switch between tool windows
Command+Shift+AFind an action or setting
Command+[, Command+]Navigate to the previous/next location

Editing

Shortcut KeyDescription
Command+DDuplicate the current line or selection
Command+DeleteDelete the current line
Command+Shift+UToggle case of selected text
Option+Command+LReformat code
Command+/Comment/uncomment current line
Option+Command+/Block comment/uncomment
Command+Shift+VPaste from clipboard history
Command+Shift+EnterComplete current statement
Command+Option+TSurround with code construct
Option+DeleteDelete to word start
Command+Option+Shift+JSelect all occurrences

Search and Replace

Shortcut KeyDescription
Command+FSearch in file
Command+RReplace in file
Command+Shift+FSearch in project
Command+Shift+RReplace in project
Command+Option+FFind next occurrence
Command+Option+GHighlight usages in the file

Debugging

Shortcut KeyDescription
Command+Shift+DDebug
Command+Shift+F9Debug with coverage
F8Step over
F7Step into
Shift+F8Step out
Option+F9Run to cursor
Option+Command+F8Toggle breakpoint
Command+Option+RResume program

Refactoring

Shortcut KeyDescription
Command+Shift+RRename
Command+Option+NInline
Command+Option+VExtract variable
Command+Option+MExtract method
Command+Option+CExtract constant
Command+Option+FExtract field
Command+Option+PExtract parameter
Command+Option+TRefactor this

Code Assistance

Shortcut KeyDescription
Command+SpaceCode completion
Command+Shift+SpaceSmart code completion
Command+Option+SpaceClass name completion
Command+PParameter info
Option+Command+TGenerate code
Option+Command+LShow documentation

Version Control

Shortcut KeyDescription
Command+KCommit changes
Command+TUpdate project
Command+Shift+KPush changes
Command+9Open Version Control tool window
Command+Shift+UToggle case of changes

Other Useful Shortcuts

Shortcut KeyDescription
Command+Shift+NOpen file by name
Command+Option+SOpen settings
Command+Shift+HSearch in files
Command+Option+GGenerate classes
Control+Option+IInspect code
Command+Shift+QQuit PhpStorm

Download PhpStorm MacOS Shortcut Keys Cheatsheet PDF

We provide a PhpStorm MacOS Shortcut Keys PDF download feature. Click the download button to get the file. Please note that generating the PDF may take some time, so please be patient. Download

About PhpStorm

PhpStorm is developed by JetBrains and provides a comprehensive development environment for PHP. Its features include intelligent coding assistance, debugging tools, and seamless integration with frameworks and tools.

PhpStorm Official Information

PhpStorm Shortcut Keys FAQ

  1. How do I customize shortcut keys in PhpStorm?
    Go to File > Settings > Keymap (Windows) or PhpStorm > Preferences > Keymap (MacOS).

  2. Can I export my custom keymap?
    Yes, export it from the Keymap settings by saving it as an XML file.

  3. What is the most useful shortcut for debugging?
    Use Shift+F9 to start debugging and F8 to step over.

  4. How can I reset shortcut keys to default?
    In the Keymap settings, select "Reset to Default" to revert customizations.

  5. Are there predefined keymaps for other IDEs?
    Yes, PhpStorm includes keymaps for IntelliJ IDEA, Eclipse, and Visual Studio.

  6. How do I view all available shortcuts?
    Press Ctrl+Shift+A (Windows) or Command+Shift+A (MacOS) and search for "Keymap."

Conclusion

Mastering PhpStorm shortcuts can greatly enhance your efficiency as a developer. Experiment with these keys, and refer to the official documentation to further explore their potential.

4.3/5 - (3 votes)