Skip to content

Commit

Permalink
Update coding-style.md (dotnet#36695)
Browse files Browse the repository at this point in the history
* Update coding-style.md

Removed info about corefx.vssettings since it was removed at dotnet#35683

* Update coding-style.md
  • Loading branch information
miloszkukla authored and stephentoub committed Apr 8, 2019
1 parent 52206f1 commit 7b320a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Documentation/coding-guidelines/coding-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ The general rule we follow is "use Visual Studio defaults".
15. When including non-ASCII characters in the source code use Unicode escape sequences (\uXXXX) instead of literal characters. Literal non-ASCII characters occasionally get garbled by a tool or editor.
16. When using labels (for goto), indent the label one less than the current indentation.

We have provided a Visual Studio vssettings file (`corefx.vssettings`) at the root of the corefx repository, enabling C# auto-formatting conforming to the above guidelines. Note that rules 7 and 8 are not covered by the vssettings, since these are not rules currently supported by VS formatting.

Additionally for auto-formatting in non-Visual Studio editors, an [EditorConfig](https://editorconfig.org "EditorConfig homepage") file (`.editorconfig`) has also been provided at the root of the corefx repository.
An [EditorConfig](https://editorconfig.org "EditorConfig homepage") file (`.editorconfig`) has been provided at the root of the corefx repository, enabling C# auto-formatting conforming to the above guidelines.

We also use the [.NET Codeformatter Tool](https://github.com/dotnet/codeformatter) to ensure the code base maintains a consistent style over time, the tool automatically fixes the code base to conform to the guidelines outlined above.

Expand Down

0 comments on commit 7b320a0

Please sign in to comment.