Syntax Templates for Code Editing
Syntax templates are available in the Code Editor for automatic completion of certain common programming tasks, such as if statements. The following tables outline the available templates for Maple and Modelica syntax and how to invoke them. Note that for the entries in the To Insert... column in each table, the pipe character (|) represents the position of the cursor after the template has been inserted. For more general information on the Code Editor, see Code Edit Region.
Note: On Mac, use Command + Shift + Space for these templates.
Syntax Templates for Maple Programming Language
Syntax Templates for Modelica Programming Language
The following syntax templates are available in the code editor.
To insert...
Type this...
if | then
end if:
"if" followed by Ctrl + Shift + Space
else
"ife" followed by Ctrl + Shift + Space
proc( | )
end proc:
"proc" followed by Ctrl + Shift + Space
module()
export |
end module:
"module" followed by Ctrl + Shift + Space
If you have MapleSim installed and have set the language for your code edit region to the Modelica programming language, the following syntax templates are available.
block |
protected
equation
end ___;
"block" followed by Ctrl + Shift + Space
model |
"model" followed by Ctrl + Shift + Space
function |
algorithm
"function" followed by Ctrl + Shift + Space
connector |
"connector" followed by Ctrl + Shift + Space
package |
"package" followed by Ctrl + Shift + Space
record |
"record" followed by Ctrl + Shift + Space
for | loop
end for;
"for" followed by Ctrl + Shift + Space
end if;
elseif ___ then
"ifei" followed by Ctrl + Shift + Space
when | then
end when;
"when" followed by Ctrl + Shift + Space
elsewhen ___ then
"whene" followed by Ctrl + Shift + Space
while | loop..
end while;
"while" followed by Ctrl + Shift + Space
loop
|
end loop;
"loop" followed by Ctrl + Shift + Space
See Also
CodeEditRegion
if
module
proc
Download Help Document