Format All FilesA Visual Studio extension that formats all code files in a solution, project, or folder with a single click — and executes arbitrary Visual Studio commands against them. OverviewRight-click any solution, project, or folder in Solution Explorer and choose Format All Files. The extension walks every matching file, opens it, runs your configured commands, saves, and closes it — all automatically. A dedicated output pane logs every file processed, so you can see exactly what happened. This project is a ground-up reimplementation of the now-unmaintained FormatAllFiles by Munyabe. In practice, CodeMaid has since grown to fully cover (and exceed) what the original extension offered. I rebuilt this extension from scratch for two reasons: to get hands-on experience with vibe coding and to learn the ins and outs of VSIX extension development. Every line of code here was produced through vibe coding. Features
ConfigurationOpen Tools → Options → Format All Files → General to customize:
InstallationInstall directly from the Visual Studio Marketplace: Format All Files on Marketplace Or build from source — open the solution in Visual Studio and compile to produce a
Usage
How It WorksThe command traverses the selected item's hierarchy:
For each physical file whose extension matches the configured list, the extension opens it in a hidden code window, executes each configured command in sequence, saves if modified, and closes the window. Already-open documents are formatted in-place and saved only if changed. Why Another Fork?The original FormatAllFiles is no longer maintained. While CodeMaid is the de facto solution for this workflow today, I wanted to understand what goes into a VSIX extension firsthand — package loading, command routing, the DTE automation model, options pages, and the VSIX manifest. Vibe coding the entire thing turned out to be a great way to learn. LicenseThis project is released under the MIT License. See the LICENSE file for the full text. |