I'm just now realizing how sucky the README is for impactjs-sublime. Whoops.
Check out out the ige snippet
. It tries to make an Entity for you. Is that working for you? Do you need a smarter snippet than that?
snippet doesn't currently let you specify the parents 'cuz I tend to have short inheritance chains on my entities. That'd be easy to change, though.
There's also a
snippet that specifies a module. It doesn't try to do anything smart with the module name, making you fill it out. When I wrote this snippet for TextMate I had some accompanying Python code that figured it out but it was kinda fragile so I left it out of this version.
Auto-complete should work, at least for entities and keys. Try hitting CTRL+SPACE when typing something in an entity..? If not, yup, that's a bug. I don't have completions for the rest of the API, though.
Format the JSON array: try the Pretty JSON package (install it through Package Control). Something like that? I bet Pretty JSON is open source so I might be able to incorporate something like that, auto-detecting when you're in a Level*.js file or something.
And, yeah, keep the feature requests coming. I got it to the point where it was most useful for me then stopped, not sure if anyone else was actually using it. ( =
matthewjames: First, install Package Control (which should really just be a part of Sublime Text). Here are the install instructions
Once Package Control is installed you can use it to install Sublime packages from within Sublime itself. In Sublime on my Mac I hit CMD+SHIFT+P, type "install" and "Package Control: Install Package" comes up. Package Control downloads a list of packages that it knows about and you can search for "ImpactJS" in that list. Should install no problem.
After that, when you're editing an ImpactJS file in Sublime you have to set the syntax to "ImpactJS". On the Mac, hit CMD+SHIFT+P then type "setsyntaximpact" and it should work once the package is installed.