tags:

views:

94

answers:

1

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 as the same like as the if which I personally don't like....

+1  A: 

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.

mhutch
I don't seem to have Source Code in options dialog. I'm using MD on my OSX for MonoTouch. Should I download an addon or something?
Ali Shafai
It's in *Solution Options*, not Preferences.
mhutch