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.