Ctrl + Alt + L (Windows/Linux) or ⌘ + ⌥ + L (macOS).
Here’s a short piece you can use for documentation, a blog post, or a team guideline on : phpstorm format code
This opens the "Reformat File" dialog. From here, you can choose to: Ctrl + Alt + L (Windows/Linux) or ⌘ + ⌥ + L (macOS)