This may be a question for the Monodevelop team, and I will email them if no one here has an answer. I thought it would be useful to ask the question here, as I imagine other Unity users are having this issue.
Since the upgrade to Monodevelop 4.0.1, when I format my code it adds new lines where I have used attributes. I have not been able to find a setting to change this behaviour in the C# source code Policy settings. Does anyone know a way change this?
Here’s an example of how Monodevelop is adding new lines and indentation:
float one;
[SerializeField]
float
two;
float three;
[Range(0.0f, 1.0f)]
float
four;
As you can see it looks a bit odd and wastes space.
Looking answer for the same issue, so if you'll find out the answer - write it here, please.
– GarrettecYou could use Visual Studio... The Express version is free.
– LightStrikerI didn't get a response from monodevelop by email. I will try the mono forums.
– hamstarto LightStriker: Unfortunately Visual Studio is not able to debug without UnityVS plugin, which seems have some issues too (I have tried it several months ago and Unity Editor hang every time I wanted to close it). And mono is the tool "out of the box", so I see no reason not to use it. Just want to know how to overcome this inconvenience with new line.
– GarrettecI need a solution for the same issue too. Couldn't find a way to change that. Anyone?
– dc