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

git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1697 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
eiffel-org
2016-11-24 06:13:16 +00:00
parent 0e5c06cb22
commit aa6c420154

View File

@@ -6,10 +6,10 @@
<span id="what_are_code_templates"></span>
= What are code templates and how do they help me? =
EiffelStudio offers Code Templates. Introduced in version 16.11, code templates facilitate the programmers task by proposing program schemes that correspond to typical situations. Code templates are contextual: based on some properties of your code, EiffelStudio will offer a list of templates that could -- just could! -- do exactly whats on your mind at the moment.
EiffelStudio offers Code Templates. Introduced in version 16.11, code templates facilitate the programmers task by proposing program schemes that correspond to typical situations. Code templates are contextual: based on some properties of your code, EiffelStudio will offer a list of templates that could just could! do exactly whats on your mind at the moment.
For example, if you are using an integer array, EiffelStudio will offer a code template for a common operation: computing computes the arrays maximum. If you select the template, EiffelStudio will insert its code into your program, giving you the option of specifying the starting and ending indices (which it sets by default to the arrays bounds). You just have to specify the information relevant to your particular case; the template takes care of the implementation.
For example, if you are using an integer array, EiffelStudio will offer a code template for a common operation: computing the arrays maximum. If you select the template, EiffelStudio will insert its code into your program, giving you the option of specifying the starting and ending indices (which it sets by default to the arrays bounds). You just have to specify the information relevant to your particular case; the template takes care of the implementation.
EiffelStudio comes with a number of predefined templates; you can also contribute your own.