waf / RunOnSave

A Visual Studio extension that can run commands on files when they're saved.
MIT License
7 stars 2 forks source link
visual-studio visual-studio-extension

Visual Studio Extension: Run On Save

A simple Visual Studio extension that runs a command (i.e. a command line application), whenever a file is saved in Visual Studio. Available for free on the Visual Studio Marketplace.

The command to be run is specified in a .onsaveconfig file, which has the same syntax and behavior as .editorconfig files.

Here's an example .onsaveconfig file that calls dotnet-csharpier on C# files:

# run dotnet csharpier on C# files, whenever they're saved.
[*.cs]
command = dotnet
arguments = csharpier {file}

The following options are supported:

Similar to .editorconfig, specific files can be ignored by setting the command to unset or ignore:

[*.cs]
command = dotnet
arguments = csharpier {file}

[BigFile.cs]
command = ignore

Logo by icons8.