How can I make my static class be added to the mono-develop suggestion/hint tool?

In the Unity tutorial, when they were going over making a static class (named Utilities), they opened another script and started typing “Utilities” and Mono develop suggested it. In the static class he made a function called Add that added two numbers. It suggested that dot operator as well. Again, when he typed the first parentheses, Mono-develop showed the two arguments that should be passed in. I’m also pretty sure the class text turned blue when typed. How do I make that happen for my own custom class?

You don’t need to do anything special for that to happen. If your class is added to the project and the code for it compiles successfully then you should get auto completion (that’s what it’s called by the way) automatically.

It should just happen - I’ve never had to do anything to make MonoDevelop autocomplete my own classes.

When you open MD, do you do it by doubleclicking on a script in Unity’s project pane, or by opening the app separately? Unity does some project file generation type stuff when you open a script from within it, and that would probably be necessary to make MD autocomplete your classes - opening MD separately from Unity might not pick up on that stuff.

Might be a other things that would impact this capability, but that’s the one that comes to mind for me.

Worst case, maybe your install of MD is broken; a reinstall of Unity may fix it.

ok thanks guys, btw I typically open it from unity

dafug, I re-installed unity and it still doesn’t work. Are there some settings I need to apply or what?

In prefs → External Tools, is “Editor Attaching” checked? Only one I can think of.

I don’t have any external tools in the tools box. How would I add something

…huh? We might be looking at different windows or something. There shouldn’t be any “tools box” or anything like it; there’s just a few drop-down menus for “External Script Editor”, “Image Application”, etc.

edit: the second window here is the one I’m talking about: Unity - Manual: Preferences