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....
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.
- Choose Preferences from Edit
- Under Text Editor choose Behavior
- Uncheck Enable on the fly formatting
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.
精彩评论