As we’re getting more of the company up to speed with Unity we decided we should stick to one language. Of course, it makes sense to embrace JavaScript. Up until now I’ve been using C# and editing scripts via Visual Studio. Primarily I chose C# over JS specifically for delicious Intellisense.
Reluctantly I started some learning projects with JavaScript. I really, really like smart autocomplete, though, and missed it in my JS editing, so I decided to do something about it:
If anyone actually edits via Windows in their pipeline–or wants to try this via Parallels or whatever–I’d be glad to share the changes I made to FlashDevelop.
Very cool Matthew. Another game engine I’ve used (“DX Studio”) has something like this and I find it very useful. I’d love to give this a go with Unity. Sure wish there were a Mac version…
The only other app on OSX (aside from Dreamweaver) that does that sort of auotcompletion is skEdit - that I have found and is usable in production. I use it for all my HTML editing which it was originally designed for. However, version 4 coming out later in the year will have custom language support… and believe me I will be customising it to support Unity as soon as it goes final… or when the betas are stable enough for production.
XCode can do that kind of completion for C# scripts. Most programs with C# code completion uses reflection.
FlashDevelop is a parser-based system, though, which meant that I had to convert the stuff from UnityEngine.dll into fake intrinsic classes. It’s hack-tastic!
Cool stuff. I had a similar concept I was toying with once. Stubbing out Unity Classes for autocompletion is the way I was headed. I was also trying to embed the doc as well. That always helps too if your ide has hover doc.
Well, bad news for people waiting to try this out–the Unity script reference template actually changed between 1.6 and 2.0. I’d have to rewrite our parser to release something with the 1.6.x classes (we wrote it for the 2.0 alpha).
I’ll email a link to the alpha mailing list, but everyone else will have to wait a bit. Sorry!