Ali Shafai
Ali Shafai

Reputation: 5161

monodevelop code formatting

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

Answers (3)

Meh...
Meh...

Reputation: 21

  • Choose Preferences from Edit
  • Under Text Editor choose Behavior
  • Uncheck Enable on the fly formatting

Upvotes: 1

yoyo
yoyo

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

Mikayla Hutchinson
Mikayla Hutchinson

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

Related Questions