* Skip to primary navigation 
  * Skip to content 
  * Skip to footer 

[ Daniel Schroeder's Programming Blog  Sharing my tips, tricks, and code to
help other developers be more productive.  ](/)

  * [ Home ](/)
  * [ Posts ](/posts/)
  * [ Categories ](/categories/)
  * [ About ](/about/)

Toggle search  __ Toggle menu

[ ![Daniel Schroeder](/assets/Site/bio-photo.jpg)
](https://blog.danskingdom.com/)

###  [ Daniel Schroeder ](https://blog.danskingdom.com/)

aka deadlydog. Developer and family man. Loves C#, .NET, PowerShell,
AutoHotkey. Automate Everything!

Follow

  * __ Regina, SK, Canada 
  * [ __ Twitter  ](https://twitter.com/deadlydog)
  * [ __ Mastodon  ](https://hachyderm.io/@deadlydog)
  * [ __ YouTube  ](https://www.youtube.com/deadlydog)
  * [ __ GitHub  ](https://github.com/deadlydog)
  * [ __ LinkedIn  ](https://www.linkedin.com/in/1danielschroeder/)
  * [ __ Stack Overflow  ](https://stackoverflow.com/users/602585/deadlydog)
  * [ __ Email  ](mailto:deadlydog@hotmail.com)
  * [ __ Blog RSS Feed  ](https://blog.danskingdom.com/feed.xml)

#  [ Easily format all files in your VS Code workspace
](https://blog.danskingdom.com/2024-03-12-Easily-format-all-files-in-your-VS-
Code-workspace/)

__ March 12, 2024  __ less than 1 minute read

I recently discovered the awesome [ Format Files VS Code extension
](https://marketplace.visualstudio.com/items?itemName=jbockle.jbockle-format-
files) that allows you to format all files in your workspace. Typically you
would need to open each file in Visual Studio Code and run the ` Format
Document ` command manually, but with this extension you can format all files
with a single command. This allows you to easily ensure all files are
formatted consistently. This is especially useful if you have a large codebase
and change your code formatting settings. e.g. changing your ` .editorconfig `
or ` .prettierrc ` settings, or modifying your VS Code code formatting
settings.

The extension still needs to manually open each file in the editor and apply
the formatting, so it can take a little while to run, but it sure beats doing
it manually. I hope you find this extension as helpful as I have.

Happy coding!

**__ Tags: ** [ Editor ](/tags/#editor) ,  [ Extension ](/tags/#extension) ,
[ Productivity ](/tags/#productivity) ,  [ Visual Studio Code ](/tags/#visual-
studio-code) ,  [ VS Code ](/tags/#vs-code)

**__ Categories: ** [ Editor ](/categories/#editor) ,  [ Extension
](/categories/#extension) ,  [ Productivity ](/categories/#productivity) ,  [
Visual Studio Code ](/categories/#visual-studio-code)

**__ Updated: ** March 12, 2024

[ __ Twitter
](https://twitter.com/intent/tweet?via=deadlydog&text=Easily+format+all+files+in+your+VS+Code+workspace%20https%3A%2F%2Fblog.danskingdom.com%2F2024-03-12-Easily-
format-all-files-in-your-VS-Code-workspace%2F "Share on Twitter") [ __
Facebook
](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fblog.danskingdom.com%2F2024-03-12-Easily-
format-all-files-in-your-VS-Code-workspace%2F "Share on Facebook") [ __
LinkedIn
](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fblog.danskingdom.com%2F2024-03-12-Easily-
format-all-files-in-your-VS-Code-workspace%2F "Share on LinkedIn") [ Previous
](/Find-your-Azure-resources-nearing-end-of-life-with-the-Service-Retirement-
Workbook/ "Find your Azure resources nearing end-of-life with the Service
Retirement Workbook

") Next

####  Leave a Comment

Your email address will not be published. Required fields are marked  *

__ Loading...

Comment  *

[ Markdown is supported. ](https://daringfireball.net/projects/markdown/)

Name  *

Email address  *

Website (optional)

Not used. Leave blank if you are a human.

****

Submit Comment

##  You May Also Enjoy

##  [ Find your Azure resources nearing end-of-life with the Service
Retirement Workbook ](/Find-your-Azure-resources-nearing-end-of-life-with-the-
Service-Retirement-Workbook/)

__ February 8, 2024  __ 1 minute read

The Azure porta