Syntax Templates
Syntax templates are available in the Modelica Code Editor for automatic completion of certain common programming tasks, such as if statements. The following table outlines the available templates for Modelica syntax and how to invoke them. Note that for the entries in the To Insert..., the pipe character (|) represents the position of the cursor after the template has been inserted.
To insert...
Type this...
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
record |
"record" followed by Ctrl + Shift + Space
for | loop
end for;
"for" followed by Ctrl + Shift + Space
if | then
end if;
"if" followed by Ctrl + Shift + Space
else
"ife" followed by Ctrl + Shift + Space
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
The Modelica Code Editor
Download Help Document