Reputation: 4010
I've got coding standards that are going to drive me nuts. I was wondering - is there is a way to switch between two different styles and have my code formatted for me? That way, I can code with my way, and check-in their way.
I am well aware that C# uses new line braces. However, the company I got hired on for uses same line braces. If I want to get paid, I will follow their coding standards for better or worse.
I'd like to check-out, format to new line braces, code, format to same line braces, and check-in again.
I could go to tools->options->text editor->c#->formatting myself and change all the boxes every time, but that is quite a hassle.
Upvotes: 2
Views: 83
Reputation: 1305
Have you looked at Resharper? I do not use it, but am aware it has an option for refactoring braces. Linked below is a post where a user is tinkering with the same line/new line brace options. This may (or may not) lead you to what you're looking for:
Upvotes: 1