Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@koomai 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

This comment has been minimized.

Copy link

@xtrasmal xtrasmal commented Mar 16, 2014

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

@markalanevans

This comment has been minimized.

Copy link

@markalanevans markalanevans commented Apr 9, 2014

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

This comment has been minimized.

Copy link

@maximkott maximkott commented May 21, 2014

@markalanevans just press ESC

@pishguy

This comment has been minimized.

Copy link

@pishguy pishguy commented Jul 11, 2014

Tanks

@shabith

This comment has been minimized.

Copy link

@shabith shabith commented Nov 13, 2014

this is great! thanks for sharing.

@antoniputra

This comment has been minimized.

Copy link

@antoniputra antoniputra commented Dec 10, 2014

how about to toggle show/hide sidebar ?

@adamdrake210

This comment has been minimized.

Copy link

@adamdrake210 adamdrake210 commented Dec 28, 2014

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

@nicoladj77

This comment has been minimized.

Copy link

@nicoladj77 nicoladj77 commented May 13, 2015

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

This comment has been minimized.

Copy link

@terdia terdia commented Aug 21, 2015

Alt + 1 - to toggle sidebar

@kagan94

This comment has been minimized.

Copy link

@kagan94 kagan94 commented May 13, 2017

Awesome! Thank you very much! :)

@shakyakrishna

This comment has been minimized.

Copy link

@shakyakrishna shakyakrishna commented Jul 13, 2017

Alt+1 worked for me :)

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