Travis Posted September 13, 2013 Share Posted September 13, 2013 Since the devs recommend Sublime Text for Phaser, has anyone made any snippets / completions for the library yet? Are there any plans to? EDIT: Until then, the best option I've found is just to open the un-minified version of phaser.js in your project and use https://sublime.wbond.net/packages/All%20Autocomplete. herksaw 1 Link to comment Share on other sites More sharing options...
powerfear Posted September 13, 2013 Share Posted September 13, 2013 Seems like a nice plugin for sublime I'll try it out. Link to comment Share on other sites More sharing options...
Kobalt13 Posted September 13, 2013 Share Posted September 13, 2013 Genius idea! Thanks for posting this! Ive been thinking about code completion for this library for a while, I tried out reverting back to Sublime Text 2 for CodeIntel, I was starting to install Visual Studio Express, and I even debated buying WebStorm! I knew this plugin existed, but the idea of just keeping the engine open and using this never even crossed my mind. A thousand times thank you, you certainly saved me some headaches and research tonight. (Seriously, I started install Visual Studio and felt like I was suffocating). What do you plan to use for code completion once someone makes a snippets file or whatever? (Are these usually JSON or a doc file or something?) Link to comment Share on other sites More sharing options...
Travis Posted September 13, 2013 Author Share Posted September 13, 2013 Most sublime text extensions are their own file type, but are very simple in practice. I think almost all sublime files are based on xml. You can see an example of this here: http://sublimetext.info/docs/en/extensibility/snippets.html How was CodeIntel? I have the sublime beta so I couldn't download it. I'm interested how effective it is in practice. As for code completion, I'll just use the plugin in tandem with All Autocomplete, or just one if they are conflicting. I actually don't mind writing the functions out, I just like having code completion so that I have an easy way of seeing the function names that I need. For example in easelJS I had the hardest time remembering getNumChildren... always had to look it up until I started using autocomplete. Link to comment Share on other sites More sharing options...
Kobalt13 Posted September 14, 2013 Share Posted September 14, 2013 I know what you mean, I like the completion for the same reason. I didnt try CodeIntel with Phaser, I was waiting for the 1.0 release. I did try it with Crafty engine, and it was good, except that it didnt autodetect everything. It would prompt me with a list of items, but when I dug in to the engine I saw other methods that would be valid for a given instance, but they weren't in the autocomplete list. Part of my plan tonight was to figure out what was happening and why. It was also my first try at Sublime Text 2, and I must say Im quite happy that there is now a solution for 3. So if someone made a snippets file for the Phaser engine it could be used like a plugin? Are there really any other options then what you've outlined here if someone doesn't put together something like that? Link to comment Share on other sites More sharing options...
rich Posted September 14, 2013 Share Posted September 14, 2013 If anyone has some good guides on how to create auto-complete files for Sublime then it's something we'd be happy to do. I assume it's not that intelligent, i.e. it won't recognise that a variable is a Sprite for example, in the way that something like WebStorm can. But at least it could provide functions and parameters. Link to comment Share on other sites More sharing options...
Travis Posted September 14, 2013 Author Share Posted September 14, 2013 Spending the past few minutes looking more into it, it looks quite... challenging. Check out the git repo for Sublime Code Intel - perhaps this would give you an idea of how much work it would take. https://github.com/SublimeCodeIntel/SublimeCodeIntel Since I actually haven't tried out Code Intel, I'm not actually sure if it will satisfy my needs. I did enjoy the Webstorm code completion, so hopefully it's like that. Once they upgrade to ST3 then I'll give it a go. Link to comment Share on other sites More sharing options...
Travis Posted September 19, 2013 Author Share Posted September 19, 2013 Through this thread: http://www.html5gamedevs.com/topic/1343-intellisense-with-vs2012/ I picked up on a package called Tern that does autocomplete. It's much better than All Autocomplete, imo. Installation instructions here: https://github.com/marijnh/tern_for_sublime. Works great with Sublime Text 3. I still want to try out Code Intel when it gets done being ported to ST3. Apologies for reviving a dead thread : ) Link to comment Share on other sites More sharing options...
Kobalt13 Posted September 19, 2013 Share Posted September 19, 2013 Actually, I think CodeIntel is now out for Sublime Text 3. I installed it last night. Not sure how well its working because I couldnt really get it to auto complete anything, but that may have just been my own issue. Check it out, it should be in Package Manager, let me know how it work for you. Link to comment Share on other sites More sharing options...
Travis Posted September 19, 2013 Author Share Posted September 19, 2013 Oh wow, thanks for the heads up. this is MUCH better than tern. Although it has trouble reading from the Phaser library, even if I put it in the project base directory. It's nice for referencing functions you've already created/used in your code. If it could read from Phaser.js that would make it perfect. Link to comment Share on other sites More sharing options...
Baron Karza Posted June 6, 2014 Share Posted June 6, 2014 Hello there,I've just installed CodeIntel on my Sublime 3.Can someone explain me step by step how to make Sublime 3 hints Phaser mathods?I've seen that Phaser comes with a file named pahers.map that seems to contain the decription of each methods.How can I add this to codeIntel?Thanks in advance Link to comment Share on other sites More sharing options...
Fntastic Posted June 19, 2014 Share Posted June 19, 2014 Has someone succsuccessfully managed to install phaser autocomplete in sublime 3 ? Link to comment Share on other sites More sharing options...
rizidoro Posted July 1, 2014 Share Posted July 1, 2014 Any news about this? Link to comment Share on other sites More sharing options...
Glaydur Posted September 9, 2014 Share Posted September 9, 2014 I made an account just to support this idea. I would love to have this as a plugin. I was just starting with Phaser and I made a typo and I spent about half an hour figuring out why my sprite wasn't showing up on screen and I just forgot to put ONE letter on a function. Link to comment Share on other sites More sharing options...
rich Posted September 9, 2014 Share Posted September 9, 2014 I wish it was that simple. If anyone knows how to actually create a code-insight / completion plugin for Sublime, then we'll do it! Because we all use Sublime every day for all our development, so it would be a great help to us too. I've just never seen anything that can actually do it though Link to comment Share on other sites More sharing options...
Glaydur Posted September 9, 2014 Share Posted September 9, 2014 I wish it was that simple. If anyone knows how to actually create a code-insight / completion plugin for Sublime, then we'll do it! Because we all use Sublime every day for all our development, so it would be a great help to us too. I've just never seen anything that can actually do it though I have actually found someone doing this already but so far he has only autocomplete for a few stuff(He has a checklist). You can check this out and maybe help him. I would do help too if I am not a programming newbie: https://github.com/Arlefreak/Phaser-Snippets Link to comment Share on other sites More sharing options...
Nepoxx Posted September 9, 2014 Share Posted September 9, 2014 Take a look at this: http://sublimecodeintel.github.io/SublimeCodeIntel/ Works good IMO. Link to comment Share on other sites More sharing options...
piotr Posted July 22, 2015 Share Posted July 22, 2015 I created an account just to support this idea and I'm willing to pay for a solid autocomplete plugin for Sublime. Link to comment Share on other sites More sharing options...
longjian43 Posted August 13, 2015 Share Posted August 13, 2015 I created an account just to support this idea and I'm willing to pay for a solid autocomplete plugin for Sublime.I am working on a completion for Phaser with Sublime, are you interested? Link to comment Share on other sites More sharing options...
longjian43 Posted August 13, 2015 Share Posted August 13, 2015 hey, guys. I know how to create a completion plugin for sublime, it's simple. Just make a json file with "trigger" and "content", then put the file in the right folder and it will work.actually I am working on that and I hope it could be helpful. see it right here: https://github.com/longjian/Phaser-completions I am just a new guy here and I hope anyone interested could help me with the completions project. Link to comment Share on other sites More sharing options...
Recommended Posts