jbockle / format-files

VS Code extension to format all files in workspace
41 stars 13 forks source link

Format Files

Format Files is a VS Code extension that formats all files in the current workspace, selected folder or glob.

VS Code Marketplace Downloads VS Code Marketplace Installs

Get Format Files on the Visual Studio Code Marketplace

Note: Due to the limitations in VSCode API, this opens each file, runs formatting command, saves the file (other save actions are started as well, to support features such as tslint.autoFixOnSave on typescript files), then closes it. The time to complete depends on the number of files and how large the files are.

Usage

This extension will prompt the user to confirm to start formatting. Check Format Files in the Output pane for the list of files that will be formatted. A progress bar will appear on bottom right to indicate the progress of the formatting.

Options

These settings are specific to VS Code and need to be set in the VS Code settings file. See the documentation for how to do that.

Requirements

Each extension needs a formatter installed for it to work, or else the VS Code formatter will display an error that it does not have a formatter for the given extension.

Some recommended formatters:

Known Issues

Contributing/Enhancement requests

Please open an issue if you would like to contribute or request an enhancement.