Shortcuts JetBrains PhpStorm for MacOS

PhpStorm is a commercial cross-platform integrated development environment for PHP. Work with the program is complicated and requires concentration. Remember the main hot keys in PhpStorm to speed up the workflow and not be distracted by tasks that are regularly repeated. Yes, it will take time, but when the fingers automatically find the necessary combinations on the keyboard, you can unload your hand with the mouse and work more productively. The combinations of hotkeys are already set by the developers, but it is possible to pump the tool for themselves. Hot keys in PhpStorm allow you to work with documents (quick formatting, auto-allocation), edit code (create duplicates, select blocks, move lines, add comments), use navigation faster. In this case, the hand with the mouse will be engaged only in those tasks that can not be shifted to the shortcut keys.

General Shortcuts

MacOS Description Edit Cancel Save & submit
Option+0..9 Open Corresponding Tool Window
Command+S Save All
Command+Shift+F12 Toggle Maximize Editor
Command+Shift+A Find Action
Ctrl+Tab Switch Editor Tabs and IDE Tool Windows
Command+, Open Setting Dialog
Command+Option+F11 Toggle Full Screen Mode
Option+Shift+F Add to Favourites
Double Shift Search Everywhere
Option+Shift+I Inspect Current file with Current file

Debugging

MacOS Description Edit Cancel Save & submit
Shift+F8 Step Out
F8 Step Over
F7 Step Into
Option+F8 Evaluate Expression
Command+F8 Toggle Breakpoint
Command+Option+F9 Resume Program

Find and Replace

MacOS Description Edit Cancel Save & submit
Command+F Find
Command+R Replace
Command+G Find Next
Command+Shift+G Find Previous
Command+Shift+F Find in Path
Command+Shift+R Replace in Path

Editing

MacOS Description Edit Cancel Save & submit
Ctrl+Spacebar Basic Code Completion
Command+Option+Spacebar Class name Completion
Ctrl+J Quick Documentation Lookup
Command+Mouse Over Brief Info
Command+Shift+Return Complete Statement
Command+P Parameter Information
Ctrl+O Override Methods
Command+N/Ctrl+N Generate Code
Command+Shift+Up Arrow/Down Arrow Move Line(Selection) Up/Down
Command+Option+T Surround With..(Begin..End etc.)
Command+/ Comment/Uncomment with Line Comment
Command+Shift+/ Comment/Uncomment with Block Comment
Ctrl+I Implements Method
Option+Return Show Intention Actions and Quick Fixes
Command+Option+L Reformat Code
Command+D Duplicate Current Line
Command+X/Command+C/Command+V Cut/Copy/Paste Current line to Clipboard
Command+Shift+V Paste from History
Ctrl+Option+I AutoIndent Lines
Command+Backspace Delete line at caret
Shift+Return Start New line
Command+W Close Active editor tab
Option+Return Show Intention Actions/Quick-Fixes
Option+Down Arrow Decrease Current Selection to Previous State
Option+Up Arrow Select Successively Incresing Code blocks
Command+NumPad +/Command+NumPad - Expand/Collapse Code block
Command+Del Delete to end word
Command+Backspace Delete to word start
Command+Shift+Option+] Select till code block end
Command+Shift+Option+[ Select till code block start
Command+Shift+U Switch case for Word at Caret or Selected block
Ctrl+Shift+J Smart Line Join(HTML and JS only)
Command+Return Smart Line Split(HTML and JS only)

Refactoring

MacOS Description Edit Cancel Save & submit
F5 Copy
F6 Move
Command+Del Safe Delete
Shift+F6 Rename
Command+Option+N Inline Variable
Ctrl+T Refactor This(Show All Available Refactoring)
Command+Option+M Extract Method
Command+Option+F Introduce Field
Command+Option+C Introduce Constant
Command+Option+V Introduce Variable
MacOS Description Edit Cancel Save & submit
Command+O Go to Class
Command+Shift+O Go to File
Command+Option+O Go to Symbol
F2 Next highlighted Error
Shift+F2 Previous highlighted Error
Command+G Go to Line
Esc Go to Editor
Command+E Recent files Popup
Option+F1 Select current file/Symbol in any View
Option+Left Arrow/Option+Right Arrow Go to Next/Previous Tab
Command+B Go to Declaration
Command+Option+B Go to Implementation
Command+Ctrl+B Go to Type Declaration
Command+Option+Left Arrow/Command+Option+Right Arrow Navigate back/forward
Command+Shift+Backspace Go to last edit location
Command+U Go to super method/super class
F4 Edit Source
Command+Down Arrow View Source
Command+]/Command+[ Move to code block end/start
Option+Up Arrow/Option+Down Arrow Go to Previous/Next Method
Command+Y Open Quick Definition Lookup

Compile and Run

MacOS Description Edit Cancel Save & submit
Command+Shift+X Run Command Line
Ctrl+F10 Run
Ctrl+F9 Debug
Ctrl+Shift+R/Ctrl+Shift+D Run Context editor from Editor
MacOS Description Edit Cancel Save & submit
Command+F7 Find Usage in File
Option+F7 Find Usage
Command+Shift+F7 Highlight Usage in File
Command+Option+F7 Show Usage

VCS/Local History

MacOS Description Edit Cancel Save & submit
Command+K Commit Project to VCS
Command+T Update Project from VCS
Option+Shift+C View Recent Changes
Ctrl+V VCS Operations Popup

Live Template/Snippets

MacOS Description Edit Cancel Save & submit
Command+J Insert Live Template
eco echo' Statement
fore foreach(iterable_expr as $value){…}
forek foreach(iterable_expr as $key=>$value){…}
inc/inco
prif private function
prof protected function
pubf public function
rqr/rqro
~~~ The end. Thank you for watching. Add page to bookmarks CTRL + D ~~~
Date of change: 14.03.2019
Page views: 1213
*Some of the keys listed may not work in older versions of the program