I do not have a better title for this.
They are small code snippets, which automatically completes by a keyword.
(E.g. If you type
'while'
and then press the [TAB] key, the entire command is inserted
While |
EndWhile'
and the cursor is automatically at the point to enter the expression.
To use this you need only do the following.
Open under AppGameKit snippets.conf (
'Tools-> Configuration Files-> snippets.conf')
And copied this code to the end of the file.
[AGK]
for=For %cursor% = 0 To %cursor%\n\t%cursor%\nNext\n
if=If %cursor%\n\t%cursor%\nEndIf\n
ifthen=If %cursor% Then %cursor%\n
while=While %cursor%\n\t%cursor%\nEndWhile\n
do=Do\n\t%cursor%\nLoop\n
repeat=Repeat\n\t%cursor%\nUntil %cursor%\n
func=Function %cursor%\n\t%cursor%\nEndFunction %cursor%\n
select=Select %cursor%\n\tCase %cursor%:\n\t\t%cursor%\n\tEndCase\nEndSelect\n
case= Case %cursor%:\n\t%cursor%\nEndCase\n
type=Type %cursor%\n\t%cursor%\nEndType\n
remstart=RemStart\n\t%cursor%\nRemEnd\n
No big deal, maybe some of you have already entered their own snippets.
The following commands will autocomplete.
for -> For ... Next command
if -> multiline if
ifthen -> oneline if ... then
while -> While ... EndWhile
do -> Do ... Loop
repeat -> Repeat ... Until
func -> Function ... EndFunction
select -> Select ... Case ... EndCase ... EndSelect
case -> Case ... EndCase
type -> Type ... EndType
remstart -> RemStart ... RemEnd
I also recommend to define a button to go through the cursor stops.
Go to
'Build->Build Options' take
'Keybindings' tab and search the entry
'Move cursor in snippet' and assign a keyshortcut. My is Ctrl->Right.
Thanks for your attention.
MadBit