In episode 34 I introduced the Code Sniffer tool that can warn you about code style violations as you type. But there is also a built-in tool that lets you reformat your code after it is written to a particular style. In this episode I talk about how to configure PhpStorm to reformat your code to a particular style.
Also applies to: WebStorm
Shift + Command + A + "Code Style"
Command + Alt + L
Shift + Ctrl + A + "Code Style"
Ctrl + Alt + L(Conflicts with Lock screen on Ubuntu)
Thank you @recchiapiero for pointing out the key mapping conflict on Ubuntu!