Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reformat all files in a VS Code Project?

I'm starting to work on an existing un-beautified project, and I have reformat-on-save in my IDE, so every 1-line edit turns into a whole reformatting of the file. Instead I'd like to reformat all the files in the project.

What's the easiest way to do that with VS Code?

like image 874
ripper234 Avatar asked Oct 20 '25 14:10

ripper234


1 Answers

Try the vscode-formatall extension. It adds a Do Format command that reformats all files specified by the pattern in the formatall.search.include setting.

like image 119
Gama11 Avatar answered Oct 22 '25 03:10

Gama11



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!