Skip to content

Instantly share code, notes, and snippets.

@koomai
Last active January 4, 2026 10:50
Show Gist options
  • Select an option

  • Save koomai/9340189 to your computer and use it in GitHub Desktop.

Select an option

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

koomai commented Mar 7, 2014

Copy link
Copy Markdown
Author

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
Copy Markdown

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

@markalanevans

Copy link
Copy Markdown

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
Copy Markdown

@markalanevans just press ESC

@pishguy

pishguy commented Jul 11, 2014

Copy link
Copy Markdown

Tanks

@shabith

shabith commented Nov 13, 2014

Copy link
Copy Markdown

this is great! thanks for sharing.

@antoniputra

Copy link
Copy Markdown

how about to toggle show/hide sidebar ?

@adamdrake210

Copy link
Copy Markdown

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

@nicoladj77

Copy link
Copy Markdown

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

terdia commented Aug 21, 2015

Copy link
Copy Markdown

Alt + 1 - to toggle sidebar

@kagan94

kagan94 commented May 13, 2017

Copy link
Copy Markdown

Awesome! Thank you very much! :)

@shakyakrishna

Copy link
Copy Markdown

Alt+1 worked for me :)

@uluQulu

uluQulu commented Jun 9, 2022

Copy link
Copy Markdown

Alt + 1 - to toggle sidebar

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

@devlubinets

Copy link
Copy Markdown

thanks!

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