Codebuff is a formatting tool that uses a machine learning algorithm.

View project on GitHub


This project is a port of Codebuff to C#, generated from Tangible Software Solutions’ excellent Code Converter, and then hand-tuned to resolve certain problems not caught by Code Converter.

Codebuff is a formatting tool that uses a novel approach via a machine learning algorithm (http://dl.acm.org/citation.cfm?id=2997383 https://arxiv.org/abs/1606.08866).


  • Net Framework 4.5

Using the API from NuGet

Use the Package Manager GUI in VS 2017 to add in the package “cs-codebuff”. Or, download the package from NuGet (https://www.nuget.org/packages/cs-codebuff) and add the package “cs-codebuff” from the nuget package manager console.

Set up the build of your C# application with Platform = “AnyCPU”, Configuration = “Debug” or “Release”.



Alternative code formatting tools for C#