Is it possible to run auto-format code for all or for specific file in solution, like (Ctrl+K, Ctrl+D) formatting in Visual Studio but from it`s command line? Or use Reshar
CodeFormatter.csproj to the root directory of your projects:CodeFormatter.csproj
Then run this from the Command Line.
> codeformatter.exe CodeFormatter.csproj /nocopyright
The result: all your projects' C# files now adhere to the majority of the .NET Foundation coding guidelines.
CodeFormatter.csproj to the root directory recursively includes all C# files, which means the above works with project.json and *.xproj based setups.http://bigfontblog.azurewebsites.net/autoformat/