Skip to content

Commit 47e4a4b

Browse files
committed
Correct code style mapping for removing unused variables
1 parent 771e659 commit 47e4a4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/ide/code-styles-and-code-cleanup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Code style options and code cleanup
33
description: Learn how to configure Visual Studio to apply code style preferences using the Code Cleanup (Visual Studio 2019) and Format Document (Visual Studio 2017) commands.
4-
ms.date: 07/19/2024
4+
ms.date: 10/03/2024
55
ms.topic: conceptual
66
author: mikejo5000
77
ms.author: mikejo
@@ -120,7 +120,7 @@ Most of the code cleanup settings map to one or more .NET code styles supported
120120
|Remove unnecessary Imports or usings|[IDE0005](/dotnet/fundamentals/code-analysis/style-rules/ide0005)|
121121
|Sort imports or usings|[dotnet_sort_system_directives_first](/dotnet/fundamentals/code-analysis/style-rules/dotnet-formatting-options#dotnet_sort_system_directives_first)</br>[dotnet_separate_import_directive_groups](/dotnet/fundamentals/code-analysis/style-rules/dotnet-formatting-options#dotnet_separate_import_directive_groups)|
122122
|Apply file header preferences|[file_header_template](/dotnet/fundamentals/code-analysis/style-rules/ide0073#file_header_template)|
123-
|Remove unused variables|[IDE0051](/dotnet/fundamentals/code-analysis/style-rules/ide0051)|
123+
|Remove unused variables|[CS0219](/dotnet/csharp/misc/cs0219)|
124124
|Apply object creation preferences|[visual_basic_style_prefer_simplified_object_creation](/dotnet/fundamentals/code-analysis/style-rules/ide0140#visual_basic_style_prefer_simplified_object_creation)|
125125
|Apply IsNot preferences|[visual_basic_style_prefer_isnot_expression](/dotnet/fundamentals/code-analysis/style-rules/ide0084#visual_basic_style_prefer_isnot_expression)|
126126
|Add 'this' or 'Me' qualification|[IDE0003-IDE0009](/dotnet/fundamentals/code-analysis/style-rules/ide0003-ide0009)|

0 commit comments

Comments
 (0)