As far as C# goes there's `dotnet format`. You can use it as is or provide an `.editorconfig` file to customize it.