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
请先登录再写评论。
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).
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
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