Update wikipage Code Templates. (Signed-off-by:javier).

git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1683 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
eiffel-org
2016-11-22 13:46:30 +00:00
parent c5f2c8b7d4
commit 345573638e

View File

@@ -22,6 +22,7 @@ There are two kinds of template:
<span id="how_do_i_use_templates"></span>
= How do I use templates in EiffelStudio? =
==Target Templates==
Code templates are part of EiffelStudios code completion mechanism. Code completion lets you choose a code template at the same place where it offers you features to call: when you type a dot character “.” after the name of an applicable local variable, attribute or function, a menu appears:
[[Image:target_template_1_0]]
@@ -36,7 +37,7 @@ Figure 2. Auto-completion with code templates option list
As suggested, you can also type Control-space to get the same effect. If you find a template that you like, just click it (or navigate to it in the list using the up and down arrow keys, then type Return).
== Targetless Templates ==
It's also possible to use code templates without a target after type Control-Space, if there are any applicable targetless templates, the first entry says “Code templates (CTRL-Space)” and you can click it to get a list of applicable templates. Choose the desired one by clicking or navigating.
[[Image:targetless_template_1_3]]