Information for doing a training session on PhpStorm

Hey everybody, I'm going to do a training session on PhpStom for my company. I'd like some input.

What are your favorite/most used features of PhpStorm
What are your favorite hot keys?

What should every new user know?

Thanks!

1 comment
Comment actions Permalink

What are your favorite/most used features of PhpStorm
* ctrl+click on function usages to get to the function declaration.
* git "changes" panel and the hot key ctrl+d to open the comparison dialog of the new file and the old one

What are your favorite hot keys?

* ctrl+shift+n = go to file name

* ctrl+shift+f = find in entire scope

* ctrl+d = to duplicate a line in the editor or a section of code (in the editor.  it works like copy+paste )

* ctrl+u = change var or text to uppercase/lowercase

* alt+shift+insert = to toggle column selection mode on so that i can change the indenting spacing between the variable and the = on multipul rows at the same time.  like ths: $var    =  'something';



What should every new user know?
#1 the IDE is keyboard centric.  Your not supposed to use the mouse to click the menus, learn the hotkeys.
#2 you can setup live templates that help with coding.

I have:
sql+tab = sets up a SELECT sql query with tests and checks
sqli+tab = sets up an INSERT sql query with tests and checks
sqld+tab = sets up a DELETE sql query with tests and checks
sqlu+tab =  sets up an UPDATE sql query with tests and checks
pre+tab = sets up a preformatted PRE block of code and prints out the get_defined_vars() for whatever array i want to know about.  along with a big message to remove this debugging code.

you can set up any that you like for any code you use often.

0

Please sign in to leave a comment.