Skip to content

PhpStorm

Keyboard Shortcuts

Editing {.row-span-4}

ShortcutAction
Ctrl SpaceBasic code completion
Alt EnterShow intention actions and quick-fixes
Ctrl PParameter info (within method call arguments)
Ctrl QQuick documentation lookup
Ctrl (mouse over code)Brief Info
Alt InsertGenerate code… (Getters, Setters, Constructors)
Ctrl OOverride methods
Ctrl IImplement methods
Ctrl Alt TSurround with…(if..else, try..catch, for, etc.)
Ctrl /Comment/uncomment with line comment
Ctrl Shift /Comment/uncomment with block comment
Ctrl WSelect successively increasing code blocks
Ctrl Shift WDecrease current selection to previous state
Ctrl Alt LReformat code
Ctrl Alt IAuto-indent line(s)
Ctrl DDuplicate current line or selected block
Ctrl YDelete line at caret
Ctrl Shift JSmart line join (HTML and JavaScript only)
Ctrl EnterSmart line split (HTML and JavaScript only)
Shift EnterStart a new line
Ctrl Shift UToggle case for word at caret or selected block
Ctrl Shift [Select till code block start
Ctrl Shift ]Select till code block end
Ctrl DeleteDelete to word end
Ctrl BackspaceDelete to word start
Ctrl +/-Expand/collapse code block
Ctrl F4Close active editor tab
Ctrl Shift VPaste from history

{.shortcuts}

Debugging

ShortcutAction
F8Step over
F7Step into
Shift F8Step out
Alt F8Evaluate expression
F9Resume program
Ctrl F8Toggle breakpoint
Ctrl Shift F8View breakpoints

{.shortcuts}

Running

ShortcutAction
Shift F10Run
Shift F9Debug
Ctrl Shift F10Run context configuration from editor
Ctrl Shift XRun command line

{.shortcuts}

Search/Replace

ShortcutAction
Ctrl F/RFind/Replace
F3Find next
Shift F3Find previous
Ctrl Shift F/RFind/Replace in path

{.shortcuts}

ShortcutAction
Alt F7Find usages
Ctrl F7Find usages in file
Ctrl Shift F7Highlight usages in file
Ctrl Alt F7Show usages

{.shortcuts}

ShortcutAction
Ctrl NGo to class
Ctrl Shift NGo to file
Ctrl Shift Alt NGo to symbol
Ctrl GGo to line
Alt Left/RightGo to next/previous editor tab
EscGo to editor (from tool window)
Ctrl ERecent files popup
Ctrl Alt Left/RightNavigate back/forward
Ctrl Shift BackspaceNavigate to last edit location
Alt F1Select current file or symbol in any view
Ctrl BGo to declaration
Ctrl Alt BGo to implementation(s)
Ctrl Shift IOpen quick definition lookup
Ctrl Shift BGo to type declaration
Ctrl UGo to super-method/super-class
Alt Up/DownGo to previous/next method
Ctrl ]/[Move to code block end/start
F2Next highlighted error
Shift F2Previous highlighted error
F4Edit/view source

{.shortcuts}

Refactoring

ShortcutAction
F5/F6Copy/Move
Alt DeleteSafe delete
Shift F6Rename
Ctrl Alt NInline variable
Ctrl Alt M/V/F/CExtract Method/Variable/Field/Constant
Ctrl Alt Shift TRefactor This (shows all available refactorings)

{.shortcuts}

VCS/Local History

ShortcutAction
Alt `VCS quick popup
Ctrl KCommit project to VCS
Ctrl TUpdate project from VCS
Alt Shift CView recent changes

{.shortcuts}

General

ShortcutAction
Shift x2Search everywhere
Ctrl Shift AFind Action
Alt 1-9Open corresponding tool window
Ctrl Alt F11Toggle full screen mode
Ctrl Shift F12Toggle maximizing editor
Alt Shift FAdd to Favorites
Alt Shift IInspect current file with current profile
Ctrl Alt SOpen Settings dialog
Ctrl TabSwitch between tabs and tool window

{.shortcuts}

Live Templates/Snippets

ShortcutAction
Ctrl JInsert 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

{.shortcuts}

Misc

ShortcutAction
Ctrl Shift AFind Action

{.shortcuts}

Also see