Skip to content

Commit 883396f

Browse files
committed
Enable simple property accessor suggestion in .editorconfig
Added csharp_style_prefer_simple_property_accessors = true:suggestion to .editorconfig to encourage concise property definitions in C# code. This helps promote cleaner and more maintainable code by preferring simple property accessors where applicable.
1 parent 49a281e commit 883396f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ csharp_style_prefer_local_over_anonymous_function = true:silent
8282
csharp_style_prefer_extended_property_pattern = true:suggestion
8383
csharp_style_implicit_object_creation_when_type_is_apparent = true:silent
8484
csharp_style_prefer_tuple_swap = true:silent
85+
csharp_style_prefer_simple_property_accessors = true:suggestion
8586

8687
# Field preferences
8788
dotnet_style_readonly_field = true:suggestion

0 commit comments

Comments
 (0)