Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

monodevelop code formatting

Tags:

monodevelop

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....

like image 325
Ali Shafai Avatar asked Mar 23 '10 02:03

Ali Shafai


2 Answers

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.

like image 61
Mikayla Hutchinson Avatar answered Nov 06 '22 09:11

Mikayla Hutchinson


  • Choose Preferences from Edit
  • Under Text Editor choose Behavior
  • Uncheck Enable on the fly formatting
like image 23
Meh... Avatar answered Nov 06 '22 11:11

Meh...