A frustrating aspect of working with MonoDevelop is the way it can auto-format your code in ways that you don’t want it to. When the auto-format works correctly, it is great. Otherwise, it feels like a constant struggle.
I’ve found that changing MonoDevelop’s default policy formatting and tab width settings don’t affect the solution generated by Unity. Additionally, while you can change the formatting and tab width settings for the solution after Unity generates it, Unity has a tendency to overwrite your solution and any custom settings regularly. This is particularly annoying to me because the default settings seem a bit wonky (an indent width of 8, really?).
Is there any way I can set Unity’s default policy to different values? For code file templates, Unity has the templates available in the install directory, and you can overwrite them to create custom C# or JS templates, which I’ve found very useful. Are there any similar files for creating custom MonoDevelop solution settings? And if not, how are other people solving this issue when the default MonoDevelop formatting settings don’t match the formatting settings you would like to use?
I should mention that this is using the “new” MonoDevelop (4.0.1), but I think it applies to the old one as well.