MonoDevelop 3.0 is great, but it’s a little too over zealous on reformatting.
When I enter the code:
var serializer = new XmlSerializer (typeof(TDestination),extraTypes);
Then press CTRL+SHIFT+F to format the code, it change these lines to put one parameter on each line making it hard to read when the function calls or lambda expressions are long.
var serializer = new XmlSerializer (
typeof(TDestination),
extraTypes
);
How do I get MonoDevelop to leave the line breaks as they are?
Go to Preferences >> Source Code >> Code Formatting >> C# Source Code. Select a custom policy, press the “C# Format” tab, and press the “Edit” button. I hope that helps!