Live template with default value that's selected

I'd like to create a live template that's a function call with its one parameter preset to the most common value, but highlighted, so I can either type over it or tab out. Is that possible, and if so, how?

Thanks,
Dave

2 comments
Comment actions Permalink

Hello Dave,

Sure. Create a variable at the parameter location ($PARAM$), press "Edit
Variables" and specify the default value (note that most likely you'll need
to put it in double quotes).

I'd like to create a live template that's a function call with its one
parameter preset to the most common value, but highlighted, so I can
either type over it or tab out. Is that possible, and if so, how?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks, it was the double quotes that did it. I'd tried that without them and it saved the value, but didn't insert it when I invoked the template.

Dave

0

Please sign in to leave a comment.