code editor for unity scripts w/ auto complete?

anyone tried to get automatic code completion going? package browsing, etc? maybe using intelliJ and C#?

Just do a search on these forums, people have found a # of solutions. I personally use Visual Studio 2005 in Parallels and it works great.

Some others use SubEthaEdit with a C# Unity module addin, others use X-Develop but it’s pricey.

When I searched I found a really nice tutorial on how to setup VS 2005 in VMWare or Parallels if that’s an option for you.

The Mono Project just very recently added native OS X support for MonoDevelop (a great c# IDE). I have been using it for about a week and it is wonderful.

I bought and used XDevelop (its good too) until I got an Intel-based mac and was able to use Visual Studio via VMware Fusion. But now that MonoDevelop works on the mac, thats what I will use.

MonoDevelop is free, by the way.

Download it here http://www.go-mono.com/mono-downloads/download.html

To use it with Unity you basically:

  1. create a new blank C# project, in MonoDevelop.
  2. in the solution widow, right click the project and add a reference to UnityEngine.DLL (which is located in at Applications/Unity/Unity.app/Contents/Frameworks)
  3. Add external links to your unity c# script files. (right click the project and select Add)
  4. Do not compile the project in MonoDevelop, only use it as a glorified text editor.

Is there a Universal binary for MonoDevelop? The last time I checked on it, the only way to get it up and running was to download a ton of packages and compile them through XCode. Too much work for me. And on top of that the stuff I read eluded to the installer packages were only for PPC not Intel.

If there’s a simpler installer package available now I’m more inclined to use it rather than VS 2005 in Parallels.

Yep, just check the link above. It’s now just a simple download and install, it’s included in the OSX Mono Framework - Universal.

Yep. MonoDevelop “just works” now, and it rocks!

MonoDevelop is nice. However, I found the font on the menus too small and unreadable, so I figured out a way to change it. Took me a while, so I thought I’d share it:

  1. First you have to show hidden files in the Finder. Do this by going into the terminal and entering:
defaults write com.apple.finder AppleShowAllFiles YES
killall Finder
  1. Then you create a file directly in your user directory named .gtkrc-2.0 with the following contents:
include "/Library/Frameworks/Mono.framework/Versions/Current/etc/gtk-2.0/gtkrc"

gtk-font-name = "Lucida Grande 11"

This file will change how GTK+, which is the Linux windowing toolkit used by MonoDevelop, renders stuff. If you’re into it, you can learn how gtkrc files work and go crazy with modifications. The dot at the beginning makes it a hidden file, so that’s why you had to show hidden files.

  1. Then, to hide hidden files again, go into the terminal and enter:
defaults write com.apple.finder AppleShowAllFiles NO
killall Finder

Presto! Even nicer MonoDevelop.

also there is TextMate plus skEdit for OSX. I’m in the process of making a Unity JS (and eventually C#) bundle for skEdit as version 4.0 has auto completion which works better then TextMate’s imho. However, TM has more general programmer related tools then skEdit as it is mainly aimed at web developers.

Cheers.

I downloaded MonoDevelop last night, got everything installed and it might just be my Mac but it’s not ready for prime time yet.

The first time I launched it it hung and I had to force quit. I rebooted, and it launched fine. However I when I tried to add a line of space between the using statements and the class declaration, instead of adding space the line numbers on the left went from 2 to 8 and you could see the 3,4,5,6,7 were written on top of one another on the screen.

I then tried to create a new project and when I did, MonoDevelop hung again but it wasn’t “not responding” so no force quit option was available. I hit quit about 8 times but nothing happened even after letting it sit and think for about 5 minutes. The Monodevelop menu option on the bar was highlighted blue but you couldn’t get the app to respond. My Mac wouldn’t even shut down, I had to hard shut it down.

The though of working on something for a few hours and losing my work because of something along these lines makes me turn red in the face and my blood pressure go up. I’ll keep an eye on Monodevelop because I love the idea of having a native OSX app to do C# development in but it seems too flaky for me right now. For now I’ll stick with VS 2005 in Parallels.

I haven’t had it lockup (and I’ve used it quite a bit). But I did have the line spacing problem you mentioned. I solved that problem by changing the Text Editor’s font. Edit>Preference>General>Font>Use Custom Font
I like Monaco size 12.

the following was extremely helpful in getting autocomplete working, but when you do the link, right click the References and then “Edit References”… then you have to make sure you make the reference to the Assembly. After I cleared this up, it all worked swimmingly

do you also have the problem that not all methods and parameters are autocompleted in visual studio 2008?

example:

this is code in a script:
vertexCount += combine.mesh.vertexCount;

but if i use intellisene I only get combine.mesh.

why is this?