From d67d73726c05055d4d87229ec6d8dc08f726aa69 Mon Sep 17 00:00:00 2001 From: Heejae Chang Date: Wed, 2 May 2018 18:13:52 -0700 Subject: [PATCH] add expression body as one of fix to offer --- .../Formatting/FormatCommandHandler.FormatDocument.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/EditorFeatures/Core/Implementation/Formatting/FormatCommandHandler.FormatDocument.cs b/src/EditorFeatures/Core/Implementation/Formatting/FormatCommandHandler.FormatDocument.cs index 698e5b0723177..244b4edeacf00 100644 --- a/src/EditorFeatures/Core/Implementation/Formatting/FormatCommandHandler.FormatDocument.cs +++ b/src/EditorFeatures/Core/Implementation/Formatting/FormatCommandHandler.FormatDocument.cs @@ -116,6 +116,13 @@ private Document ApplyCodeFixes(Document document, CancellationToken cancellatio IDEDiagnosticIds.AddBracesDiagnosticId, IDEDiagnosticIds.AddAccessibilityModifiersDiagnosticId, IDEDiagnosticIds.OrderModifiersDiagnosticId, + IDEDiagnosticIds.UseExpressionBodyForConstructorsDiagnosticId, + IDEDiagnosticIds.UseExpressionBodyForMethodsDiagnosticId, + IDEDiagnosticIds.UseExpressionBodyForConversionOperatorsDiagnosticId, + IDEDiagnosticIds.UseExpressionBodyForOperatorsDiagnosticId, + IDEDiagnosticIds.UseExpressionBodyForPropertiesDiagnosticId, + IDEDiagnosticIds.UseExpressionBodyForIndexersDiagnosticId, + IDEDiagnosticIds.UseExpressionBodyForAccessorsDiagnosticId, IDEDiagnosticIds.UseImplicitTypeDiagnosticId, IDEDiagnosticIds.UseExplicitTypeDiagnosticId, IDEDiagnosticIds.AddQualificationDiagnosticId,