‎2017 Jan 12 12:25 PM
I'd like an "insert only" template, but have the following problems:
1. If nothing is highlighted, CTRL-+space does nothing.
2. If I do highlight e.g. an empty line, I get the template list, however, templates that don't contain the ${word_selection} don't show up there.
I worked around this by putting ${word_selection} at the start of my template, but I really have the feeling that I might be using the wrong tool for my task...
is that the case? What would be a better Tool?
Thanks
Joachim
‎2017 Jan 13 9:09 AM
Hi Joachim,
to use code templates that are not surrounding a selection but instead are entering something completely new you can do it this way:
Start typing the name of the template (first 2-3 characters) just as if it was code and press ctrl-space. This should bring up the list of suggestions that also contains templates. Once a template is chosen the previously entered characters (beginning of template name) are replaced with the content of the template.
Best regards,
Armin
‎2017 Jan 12 12:26 PM
Sorry, the Initial lines where missing: (and I cant Edit because of "
I read Thomas' Blog on Code-Templates, and I do get an idea iof how powerfull the are.
However, they seem mainly be made for "surrounding" one's code, right?
‎2017 Jan 13 9:09 AM
Hi Joachim,
to use code templates that are not surrounding a selection but instead are entering something completely new you can do it this way:
Start typing the name of the template (first 2-3 characters) just as if it was code and press ctrl-space. This should bring up the list of suggestions that also contains templates. Once a template is chosen the previously entered characters (beginning of template name) are replaced with the content of the template.
Best regards,
Armin
‎2017 Jan 13 1:13 PM