There is more...

Code style rule preferences are saved with user profile settings and persisted across Visual Studio sessions on the machine for the same Visual Studio install. This means that any project opened in Visual Studio will have the same code style enforcement. However, the same sources opened on a different Visual Studio installation or a different machine with a different user profile will not have the same code style enforcement. To enable same code style enforcement for a repo across all users, users need to persist the code style settings into an .editorconfig file and check it into the repo along with the sources. Refer to, Using .editorconfig file for per-folder configuration for code style rules, recipe in this chapter for further details.

Consider exploring the Naming rules in the Tools | Options... dialog under Text Editor | C# | Code Style | Naming. These rules allow users to enforce guidelines on how each different symbol kind should be named. For example, interface names should start with capital letter "I", type name should be Pascal cased, and so on.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset