Shortcuts JetBrains PhpStorm for MacOS

107 shortcuts3,225 views
Open Trainer

General Shortcuts

macOSAction
Option+0..9Open Corresponding Tool Window
Command+SSave All
Command+Shift+F12Toggle Maximize Editor
Command+Shift+AFind Action
Ctrl+TabSwitch Editor Tabs and IDE Tool Windows
Command+,Open Setting Dialog
Command+Option+F11Toggle Full Screen Mode
Option+Shift+FAdd to Favourites
Double ShiftSearch Everywhere
Option+Shift+IInspect Current file with Current file

Debugging

macOSAction
Shift+F8Step Out
F8Step Over
F7Step Into
Option+F8Evaluate Expression
Command+F8Toggle Breakpoint
Command+Option+F9Resume Program

Find and Replace

macOSAction
Command+FFind
Command+RReplace
Command+GFind Next
Command+Shift+GFind Previous
Command+Shift+FFind in Path
Command+Shift+RReplace in Path

Editing

macOSAction
Ctrl+SpacebarBasic Code Completion
Command+Option+SpacebarClass name Completion
Ctrl+JQuick Documentation Lookup
Command+Mouse OverBrief Info
Command+Shift+ReturnComplete Statement
Command+PParameter Information
Ctrl+OOverride Methods
Command+N/Ctrl+NGenerate Code
Command+Shift+Up Arrow/Down ArrowMove Line(Selection) Up/Down
Command+Option+TSurround With..(Begin..End etc.)
Command+/Comment/Uncomment with Line Comment
Command+Shift+/Comment/Uncomment with Block Comment
Ctrl+IImplements Method
Option+ReturnShow Intention Actions and Quick Fixes
Command+Option+LReformat Code
Command+DDuplicate Current Line
Command+X/Command+C/Command+VCut/Copy/Paste Current line to Clipboard
Command+Shift+VPaste from History
Ctrl+Option+IAutoIndent Lines
Command+BackspaceDelete line at caret
Shift+ReturnStart New line
Command+WClose Active editor tab
Option+ReturnShow Intention Actions/Quick-Fixes
Option+Down ArrowDecrease Current Selection to Previous State
Option+Up ArrowSelect Successively Incresing Code blocks
Command+NumPad+/Command+NumPad -Expand/Collapse Code block
Command+DelDelete to end word
Command+BackspaceDelete to word start
Command+Shift+Option+]Select till code block end
Command+Shift+Option+[Select till code block start
Command+Shift+USwitch case for Word at Caret or Selected block
Ctrl+Shift+JSmart Line Join(HTML and JS only)
Command+ReturnSmart Line Split(HTML and JS only)

Refactoring

macOSAction
F5Copy
F6Move
Command+DelSafe Delete
Shift+F6Rename
Command+Option+NInline Variable
Ctrl+TRefactor This(Show All Available Refactoring)
Command+Option+MExtract Method
Command+Option+FIntroduce Field
Command+Option+CIntroduce Constant
Command+Option+VIntroduce Variable

Navigation

macOSAction
Command+OGo to Class
Command+Shift+OGo to File
Command+Option+OGo to Symbol
F2Next highlighted Error
Shift+F2Previous highlighted Error
Command+GGo to Line
EscGo to Editor
Command+ERecent files Popup
Option+F1Select current file/Symbol in any View
Option+Left Arrow/Option+Right ArrowGo to Next/Previous Tab
Command+BGo to Declaration
Command+Option+BGo to Implementation
Command+Ctrl+BGo to Type Declaration
Command+Option+Left Arrow/Command+Option+Right ArrowNavigate back/forward
Command+Shift+BackspaceGo to last edit location
Command+UGo to super method/super class
F4Edit Source
Command+Down ArrowView Source
Command+]/Command+[Move to code block end/start
Option+Up Arrow/Option+Down ArrowGo to Previous/Next Method
Command+YOpen Quick Definition Lookup

Compile and Run

macOSAction
Command+Shift+XRun Command Line
Ctrl+F10Run
Ctrl+F9Debug
Ctrl+Shift+R/Ctrl+Shift+DRun Context editor from Editor

Usage Search

macOSAction
Command+F7Find Usage in File
Option+F7Find Usage
Command+Shift+F7Highlight Usage in File
Command+Option+F7Show Usage

VCS/Local History

macOSAction
Command+KCommit Project to VCS
Command+TUpdate Project from VCS
Option+Shift+CView Recent Changes
Ctrl+VVCS Operations Popup

Live Template/Snippets

macOSAction
Command+JInsert Live Template
ecoecho' Statement
foreforeach(iterable_expr as $value){…}
forekforeach(iterable_expr as $key=>$value){…}
inc/inco
prifprivate function
profprotected function
pubfpublic function
rqr/rqro