Reputation: 5161
I'm using monodevelop on my mac to develop for iPhone. I was wondering if there is a way to change how MD formats C# code? by default it puts the curly braces at the same line as the if which I personally don't like....
Upvotes: 8
Views: 17842
Reputation: 21
Upvotes: 1
Reputation: 8706
You can also create a custom policy, save it to a file, share it with your team (they'll need to import the policy), and then quickly select it from Solution Options.
Upvotes: 0
Reputation: 16153
In the Solution Options dialog, go to Source Code->Code Formatting->C#. These will cascade to the projects in the solution, but you can override it for individual projects if you want.
You can change the defaults for new solutions in the Default Policies dialog, but this will not affect existing solutions.
Upvotes: 19