/// <summary> /// Formats the file /// </summary> static string FormatFile (ICSharpCode.NRefactory.CSharp.SyntaxTree file) { var formatting = FormattingOptionsFactory.CreateMono (); formatting.AutoPropertyFormatting = PropertyFormatting.ForceOneLine; formatting.SimplePropertyFormatting = PropertyFormatting.ForceOneLine; var formatter = new CSharpFormatter (formatting) { FormattingMode = FormattingMode.Intrusive }; return formatter.Format (file.ToString ()); }