Phpstorm Format - Code

Ctrl + Alt + Shift + L (Windows/Linux) or ⌘ + ⌥ + ⇧ + L (macOS). This opens advanced options like reformatting only uncommitted lines .