I’m working on using my development tools more efficiently and to their fullest extent. I’ve collected this list of PhpStorm keyboard commands that I’m trying to embed in my muscle memory. Perhaps they’ll be useful for you too.
? = command
? = option (alt)
? = control
? = shift
? = enter
? = up arrow
? = backspace
|
||
1
|
Quick Reformat (to WordPress standards
|
??L
|
2
|
Split editor vertically
|
??T
|
3
|
Split editor horizontally
|
??W
|
4
|
Toggle sidebar (open / close)
|
?1
|
5
|
Preferences
|
?,
|
6
|
Search actions (not files)
|
??A
|
7
|
File Structure
|
?F12
|
8
|
Open File (searches files)
|
??O
|
9
|
Close File
|
?W
|
10
|
Search for a PHP function, or CSS/Sass class
|
??O
|
11
|
Search Everywhere
|
??
|
12
|
Toggle between two files (last used)
|
?E?
|
13
|
Select groups of code such as div
|
??
|
14
|
Find in Path
|
??F
|
15
|
Duplicate a line
|
?D
|
16
|
Moves a line of code
|
??? ?or ????
|
17
|
Moves the whole function
|
??? ?or? ???
|
18
|
Deletes a line
|
??
|
19
|
Jumps to last code changed
|
???
|
LATE ADDITIONS
|
||
20
|
Copy entire line of code
|
?C
|
21
|
Delete entire line of code
|
?X
|
Hat tips to:
Matt Geri
(https://www.youtube.com/watch?v=11CjrhFUWGY&list=PLEVmaBhqzpLZULM_tdkOPZFMUclizPC-j&index=2)
and
Jeffrey Way
(https://laracasts.com/series/how-to-be-awesome-in-phpstorm)
Matt Geri
(https://www.youtube.com/watch?v=11CjrhFUWGY&list=PLEVmaBhqzpLZULM_tdkOPZFMUclizPC-j&index=2)
and
Jeffrey Way
(https://laracasts.com/series/how-to-be-awesome-in-phpstorm)