Some handy PHPStorm shortcuts everyone should know

A Blog Post by

I'm a fan of the JetBrains' PhpStorm IDE. It's the best PHP IDE out there at the moment.

Although PhpStorm requires a payed license.. it won't break the bank and is worth every cent.

So some handy shortcuts:

Everyday

Ctrl + Shift + Enter  // Complete line
Ctrl + W/Ctrl + Shift + W  // Incremental select
Ctrl + "/"  // Line comment // example
Ctrl + Shift + "/"  // Block comment /* example */
Alt + Left/Right  // Move through open files
Alt + Up/Down  // Move through open file functions
Ctrl + Shift + Up/Down  // Move statement up/down

Navigation

Ctrl + Shift + Backspace  // Previous edit position
Ctrl + "+"/"-"  // Maximize/minimize functions
Ctrl + Shift + "+"/"-"  // Maximize/minimize all functions
Ctrl + Shift + N  // Find filename
Ctrl + Shift + F  // Global find
Ctrl + Shift + G  // Global replace

Heavy lifting

Ctrl + Alt + L  // Reformat code
Ctrl + Alt + I  // Auto indent
Ctrl + Shift + Alt + T  // Refactor
Shift + F6  // Refactor rename

Bookmarks

Ctrl + Shift + (number)  // Set bookmark
Ctrl + (number)  // Go to bookmark
Created: Mon, 03/09/2012 - 20:22