[MonoDevelop] Project Policies: White space between method and opening paren, U MAD?!

OK, so the default code styling in MonoDevelop does not fit my coding style at all (not just the white space settings), but I can’t seem to find a way for it to remember my settings.

Every time Unity syncs the MonoDevelop project it gets reset. To move this thought further: if I create a new project within MD I’d want my policy to be used always by default.

Does anybody have experience with this? Is this a Unity specific thing, or maybe more for the MonoDevelop forums?

Sorry if this has been asked before.

Unity has nothing directly to do with Mono or MonoDevelop. If you’ve got problem with the editor, then you’ll need to take it up with Mono’s devs on their forums. But most people who don’t find MonoDevelop adequate for their purposes usually turn to one of the other IDE’s, such as Visual Studio, Eclipse, or NetBeans.

Personally, I don’t have much of a problem with MonoDevelop. It works well enough for me for prototyping and coding smaller projects. But for larger projects, I prefer to spend most of my time in Visual Studio.

I remember having problems setting the coding policies for MD on Windows. I eventually got it sorted out. From memory I think you have to set the dropdown option to ‘custom’ then set up the code formatting on the ‘custom’ setting. I think the problem is that the default setting is ‘Mono’ and that either changes to those settings aren’t retained or that because you can only change the ‘custom’ settings, it appears as though it doesn’t work.

Basically it should work, you just have to play around with the settings a bit to work out how to retain the values.

Thanks guys, I’ve now played around with the policy settings in MonoDevelop and I have to say it’s one of the most confusing, redundant, unnecessarily convoluted thing I’ve seen recently. Plus it’s buggy as hell…

One thing though: I’ve checked the solutions Unity generates, there’s a setting in them $x.inheritsSet = Mono, if I change that to $x.inheritsSet = null in all occurrences, my defaults are used (or so it seems, the GUI is terrible at relaying what the active policy is, if it’s from the project, the solution, or from some other default…).

If this is true though, then I’d have to manually edit the solutions every time they get generated (I couldn’t find a template within the Unity.app package, so I assume they are generated in code).

I’m thinking about using alternatives; of course Visual Studio would be great, but I’m on OS X, so it’s problematic, and I don’t have too fond memories of Eclipse…

There is a script template file you can change
Not sure where it is on a Mac since I use windows