Settings -> Editor -> Live Templates -> JavaScript
And add the live template for abbreviation 'koo' and template text like:
self.$VAR$ == ko.observable("")
See http://www.jetbrains.com/idea/webhelp/live-templates.html for more information.
Settings -> Editor -> Live Templates -> JavaScript
And add the live template for abbreviation 'koo' and template text like:
self.$VAR$ == ko.observable("")
See http://www.jetbrains.com/idea/webhelp/live-templates.html for more information.
That though inserts the template and lets you tab through it.
What I'm suggesting is to pass fooBar before you expand the template so that you don't need to tab through it (similar to how zen-coding does id's and classes on html)
i.e.
func(returnFoo,$foo,$bar,$fizz,$buzz)<TAB>
becomes without having to tab through.
public function returnFoo($foo, $bar, $fizz, $buzz)
{
}Embarrassingly for someone who has been a Linux user for more than 15 years I'm terrible with Vim (I can just about use it systems administration (though I often just use nano)) and use IDE's for most things.