Skip to content

Commit 8dc0b5e

Browse files
Merge pull request #14098 from Mikejo5000/mikejo-br26
Clarify source for .NET code styles in the IDE
2 parents 0658877 + 454c0d8 commit 8dc0b5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,19 @@ Code style preferences allow you to control aspects of code such as indent style
2222
- For all code you edit in Visual Studio based on settings for the text editor [.NET Options page](#net-code-styles-in-the-options-dialog-box) or [C/C++ Options page](#cc-code-styles-in-the-options-dialog-box).
2323

2424
You can also configure Visual Studio to apply code style preferences using the **Code Cleanup** and **Format Document** commands.
25+
2526
::: moniker-end
2627

2728
::: moniker range="vs-2019"
2829
You can define code style settings per-project by using an [EditorConfig file](#code-styles-in-editorconfig-files), or for all code you edit in Visual Studio on the text editor [.NET Options page](#net-code-styles-in-the-options-dialog-box) or [C/C++ Options page](#cc-code-styles-in-the-options-dialog-box). For C# code, you can also configure Visual Studio to apply these code style preferences using the **Code Cleanup** (Visual Studio 2019) and **Format Document** (Visual Studio 2017) commands.
2930
::: moniker-end
3031

32+
::: zone pivot="programming-language-dotnet,programming-language-dotnetf"
33+
For .NET, the code style preferences are based on .NET compiler platform (Roslyn) analyzers. For more information, see [Code analysis using .NET compiler platform (Roslyn) analyzers](../code-quality/roslyn-analyzers-overview.md).
34+
35+
In Visual Studio 2019 version 16.5 and later, rule set files are deprecated in favor of EditorConfig files for code style configuration for .NET code. For more information, see [Convert an existing rule set file to an EditorConfig file](../code-quality/use-roslyn-analyzers.md#convert-an-existing-rule-set-file-to-an-editorconfig-file).
36+
::: zone-end
37+
3138
::: zone pivot="programming-language-dotnet,programming-language-cpp,programming-language-dotnetf"
3239
## Code styles in EditorConfig files
3340

0 commit comments

Comments
 (0)