PhpStorm (Menu Code > ReFormat Code/File)
* Reformat File has more Options as seen in the second screenshot
![](http://www.leonidassavvides.com/blog1/wp-content/uploads/2022/06/2022-06-04_09-43-46-2.png)
![](http://www.leonidassavvides.com/blog1/wp-content/uploads/2022/06/2022-06-04_09-44-37.png)
![](http://www.leonidassavvides.com/blog1/wp-content/uploads/2022/06/2022-06-04_09-45-00.png)
VS Code (Right-Click + choose: Format Document/Selection)
Format Document: For All Document but Format Selection: Only for the Selected Code
![](http://www.leonidassavvides.com/blog1/wp-content/uploads/2022/06/2022-06-04_09-39-40-2.png)
![](http://www.leonidassavvides.com/blog1/wp-content/uploads/2022/06/2022-06-04_09-40-59.png)