Skip to content

Instantly share code, notes, and snippets.

@koomai
Last active October 13, 2023 00:11
Show Gist options
  • Save koomai/9340189 to your computer and use it in GitHub Desktop.
Save koomai/9340189 to your computer and use it in GitHub Desktop.
Frequently Used PhpStorm Keyboard Shortcuts

Note: Some of these shortcuts have been remapped for my own convenience (Preferences->Keymap). These are Mac shortcuts, just use the Windows/Linux equivalent of the Cmd/Option/Ctrl/Del keys.

####Search, Go to, Navigation ####

Cmd + P - Search file

Cmd + Shift + O - Search everywhere

(I swapped the above two recently because I use Cmd + P to search for files most of the time).

Cmd + O - Open Class

Cmd + R - Go to Symbol

Cmd + L - Go to Line

Cmd + Shift + E - Navigate recently edited files

Cmd + Up - Navigate Folders (goodbye sidebar)

Cmd + Shift + F - Search for text in a folder or entire project

Cmd + Shift + Del - Go to last edit location (Thanks Laracasts)

IDE Goodness

Cmd + J - Insert Live Template (snippet)

Option + Enter - Show intention actions

Ctrl + T - Refactor This

Mothership

Cmd + Shift + A - The shortcut to all shortcuts

@koomai
Copy link
Author

koomai commented Mar 7, 2014

In PhpStorm 8 (Preview version), make your selection and use Ctrl + G to make multiple selections.

I've remapped it to Cmd + D to select word at caret (press multiple times to expand selection) and Cmd + Shift + D to select other occurrences.

@xtrasmal
Copy link

Alt+Home navigate folders(floating navbar) , phpstorm 7

@markalanevans
Copy link

Is there a shortcut that always takes you back to the code window. ie the current tab that is open? Say for example i'm on the Project Pane....

@maximkott
Copy link

@markalanevans just press ESC

@pishguy
Copy link

pishguy commented Jul 11, 2014

Tanks

@shabith
Copy link

shabith commented Nov 13, 2014

this is great! thanks for sharing.

@antoniputra
Copy link

how about to toggle show/hide sidebar ?

@adamdrake210
Copy link

To toggle show/hide sidebar is Cmd + 1 in phpstorm

@nicoladj77
Copy link

How do you hide the sidebar in Windows?I'm using 8.0.3. Also, i can't find the equivalent of command + Up. With Alt + Home the navigation tree is selected ( look at the image )

http://take.ms/aOxsy

@terdia
Copy link

terdia commented Aug 21, 2015

Alt + 1 - to toggle sidebar

@kagan94
Copy link

kagan94 commented May 13, 2017

Awesome! Thank you very much! :)

@shakyakrishna
Copy link

Alt+1 worked for me :)

@uluQulu
Copy link

uluQulu commented Jun 9, 2022

Alt + 1 - to toggle sidebar

@terdia thank you for sharing the shortcut, it works well.

@devlubinets
Copy link

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment