I use PHPStorm daily and it’s nice to remember the shortcuts. Sitepoint has a great run down of productivity shortcuts. I’m reproducing my favorite ones here. This comes straight from Sitepoint.
- PhpStorm remembers multiple clipboard contents – you can press CTRL+SHIFT+V to summon a popup which lets you paste clipboard content that’s less recent than the latest.
- CTRL + ALT + L, one of my most used keyboard combos, will immediately format your code according to the preferred style guidelines
- Pressing CTRL+SHIFT+Backspace, or the “Forward” and “Back” buttons on your mouse if you have them, will walk you through your previous edit locations.
- Holding down CTRL when hovering over variables or methods will give you their full names or locations of declaration, while CTRL+Clicking on a variable or method, or pressing CTRL+B when on a method’s call or on a variable will take you directly to where it’s defined
- CTRL+Space will summon a code hinting dialog, if you accidentally closed it or for some reason it didn’t open
- CTRL+N and CTRL+SHIFT+N will let you instantly move to any part of any class or file in your entire project
- CTRL+SHIFT+A will spawn a command search popup. Forgot how the code reformat shortcut goes? Just CTRL+SHIFT+A and type “refor..”
- Generate full HTML without writing it out, using Emmet, built into PhpStorm. Typing
tabwill turn into:
- Context-aware editing will allow you to edit a string that’s written in another language in a dedicated editor, complete with code hinting and autocompletion. For example, you if you have an HTML snippet written in a PHP string, you can ALT+ENTER in the string’s content and select Edit HTML content.