I’m trying to get rid of the annoying auto code formatting of C# attributes on my fields which puts a newline before the field name in the new MonoDevelop. Here’s an example of what I mean:
I have looked in Tools->Options->Code Formatting->C# source code. There doesn’t seem to be an option to remove the newline. I know this doesn’t happen in Xamarin Studio. I would like to keep code formatting enabled for everything else. Anyone can help? If not, unity devs, please consider adding the option!
The code formatting for the new version of Monodevelop doesn’t work at all. You could have done this with the previous version, but now the only policies that work are the built-in ones, none of which do I find remotely usable.
I have the same problem. But otherwise the formatting works fine as opposed to Mweldons comment. You just have to configure the code formatting opions in Project → Solution options.
I have tried a lot of different options in code formatting of MonoDevelop, but nothings seems to work. It would be cool if anyone has the solution.
Just want to add my voice to the chorus of the irritated regarding this issue. I’m on OSX now but I was weened on visual studio…20 years ago. I want my code a certain way, thank you.
The always on top bug is the one in
a) Unity 4.6 beta where the standalone player is stuck on top of other windows in windowed mode
b) MonoDevelop IDE where it gets stuck on top of other windows and requires a restart.
You can’t- it’s not about “knowing”. It’s a bug with Unity’s MonoDevelop- it won’t be fixed until the Unity devs fix it on their end. Until then, I suggest using Visual Studio with “VSTools For Unity”, as it’s what I consider the absolute best programming environment currently available.
Have you tried running Visual Studio in Parallels on OSX? for the last 3 months I have been doing this at work and it is working pretty good. Even the debugger still attaches since that uses a udp port. Since parallels provides shortcuts to wndows apps in OSX i was even able to set my VS running in windows to be the default script editor for my instance unity running in OSX.
It was a year and a half ago- I would’ve called “necro” instead of politely responding before, but this is still an issue in the current version of Unity/Mono. This is likely the longest-lasting bug in Unity’s history because, while annoying, it doesn’t actually affect anything beyond aesthetics. shrugs
If nothing else, it pushes more people toward VS, and now that “VSTools for Unity” is owned by M$ and free, there’s absolutely no reason not to switch over IMO.
For the most part the monodev hold overs seem to be mac users, where it is your only option unless you want to run a virtual machine for Visual Studio.
Its a pain in the ass at work since most of the office is running OSX, and i think im the only one with a parallels license, so im the only one able to use VS
This issue is now fixed according to the issue tracker. However, it is not the issue of the OP. I found that MonoDevelop is indeed still adding newlines before field names when using attributes.
[Header("Debug Options")]
public bool overrideDefaults = false;
still changes into this:
[Header("Debug Options")]
public bool
overrideDefaults = false;