Welcome to Microsoft Q&A!
Which version of Visual Studio are you using?
You can try using .EditorConfig file to your codebase to enforce code styles for everyone that works in the project.
For more details, please refer to: Use EditorConfig files for code style.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.