Webstorm jquery completion/stubbing

Hey there. I'm new to Webstorm and trying to figure out how jquery integrates with it. I turned on jquery for my project and am able to get basic method hinting which is great. Is it supposed to also stub code out? I'm coming from TextMate which has the jquery bundle which does this. For example, if you type $('#mydiv').hover and then hit tab, it will stub out the two functions and give you tab access for quickly accessing them. Is such functionality already built in and I'm just not hitting the right hot keys? Or is there a plugin available? Or can I write my own?

Any tips would be greatly appreciated!

Thanks,
-Ryan

2 comments

Hi Ryan,

Very similar thread: http://devnet.jetbrains.net/thread/433302?tstart=0

Is such functionality already built in and I'm just not hitting the right hot keys?

No. But you can submit new ticket for Feature Request on Issue Tracker (as suggested in the aforementioed thread).

Or is there a plugin available?

No.

Or can I write my own?

Yes, you can:



In meantime -- try solving it with Live Templates functionality (File | Settings | Live Templates) -- it may work... (have not tried solving this myself yet)

0

Wow, weird about the similar post asked just last week. We even used the same example :p

I'll check out the live template and see if that might work. Thanks for your help!

0

Please sign in to leave a comment.