Hi.
Yes, Codelobster's snippents work via autocomplete only.
--- In order to insert a snippet into a code you can enter snippet’s name and select a snippet from autocomplete list or press "ALT+Space" combination. After that a corresponding construction will be inserted into a code.
Navigation through the elements within construction is carried out by pressing "Tab" button. Pressing "Enter" button completes a template insertion. --- Creation of snippets:
Variables are set by "@" symbol. If you need to insert "@" sign into snippet text, this sign should be doubled such as "@@".
When the same variable is in several positions of a construction, edition of the variable in any position leads to automate changes in the rest positions to the right of the first changed position.
For example, let’s view "For" construction:
for($@i (1) = 0; $@i (2) < @cond; $@i (3)++){ @ }
Variable "@i" has three positions. If to set "one" name for the variable in position (1), the same name will be set to the rest variables to the right of the edited one, that is (2) and (3).
If you rename the variable in second occurrence (2) into "onetwo", so the variable in position (3) will get the same name. ---
Regards, Codelobster Team.
|