PhpStorm (Menu Code > ReFormat Code/File)
* Reformat File has more Options as seen in the second screenshot



VS Code (Right-Click + choose: Format Document/Selection)
Format Document: For All Document but Format Selection: Only for the Selected Code

