Skip to content

Commit 5ded4ff

Browse files
author
Oleksandr Poliakov
committed
Adjust .editorconfig to prefer var
1 parent 5bd1d28 commit 5ded4ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.editorconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ dotnet_style_qualification_for_property = false:suggestion
4747
dotnet_style_qualification_for_method = false:suggestion
4848
dotnet_style_qualification_for_event = false:suggestion
4949

50-
# Types: use keywords instead of BCL types, and permit var only when the type is clear
51-
csharp_style_var_for_built_in_types = false:suggestion
52-
csharp_style_var_when_type_is_apparent = false:none
53-
csharp_style_var_elsewhere = false:suggestion
50+
# Types: use keywords instead of BCL types, and prefer var instead of the explicit type
51+
csharp_style_var_for_built_in_types = true:suggestion
52+
csharp_style_var_when_type_is_apparent = true:suggestion
53+
csharp_style_var_elsewhere = true:suggestion
5454
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
5555
dotnet_style_predefined_type_for_member_access = true:suggestion
5656

0 commit comments

Comments
 (0)