Categories
Php Storm Samuel

Helpful PHPStorm Shortcuts

Running List of useful PHPStorm Keyboard Shortcuts

  • Shift + Shift will out up a dialog box that will search the entire project
  • shift + Delete removes an entire line
  • Control + K allows you to commit changes to the repo straight from PHPStorm
  • Shift + Shift then type annotation into the search box, will show full version history of the file you are currently in
  • Alt + Enter will add any missing classes to your current file automatically, very useful when updating a controller file in Laravel
  • Control + Alt + Z will revert a single line to the previous version, very useful when updating versions of Laravel
  • Control + Alt + Shift + J will select all occurrences in a section. Very useful when bulk re-naming or replacing items
  • Control + G will allow you to type an exact line to navigate to. Very useful when navigating to an exact location in a CSS file
  • To mass remove white space Hold down Control + Shift + J until all of the code is on one single line. Then press Control + Alt + L and that will put the indentation back and everything will be grouped nicely without any whitespace