C# Formatter and Beautifier
C# Code Formatter
Format your C# code and make it readable. Well-formatted C# code reduces development time. It also helps you spot bugs faster.
The C# beautifier will ident your code, will remove empty spaces, will move each statement on a new line.
Example of how a poor writte code it's is formatted
var start = DateTime.Now;var end = start.AddYears(30);cronDescriptorDto = new() {Occurrences = crontabSchedule.GetNextOccurrences(start, end).Take(100),Description = CronExpressionDescriptor.ExpressionDescriptor.GetDescription(cronExpression) }; return cronDescriptorDto; Look at the above code. You can barely understand what he's writing.
var start = DateTime.Now;
var end = start.AddYears(30);
cronDescriptorDto = new()
{
Occurrences = crontabSchedule.GetNextOccurrences(start, end).Take(100),
Description = CronExpressionDescriptor.ExpressionDescriptor.GetDescription(cronExpression)
};
return cronDescriptorDto;After the beautify process, the code is readable. You can understand what the code is doing.
This service is based on CSharpier library.