Code Completion Master

AnyLogic supports intelli-sense mechanism. This significantly simplifies typing code since you do not need to type the whole names of functions, variables and parameters. You can use the intelli-sense wizard to insert a variable name or a call of a function.

The wizard looks as a list, containing variables, parameters, and functions. You can simply select the name in the list, and it will be inserted in the expression automatically.

 To insert a name using the Code Completion Master

  1. Move cursor at the position where you want to place the object name.
  2. Press Ctrl+space (Mac OS: Option-space). The wizard listing all model variables and predefined functions appears. 
                     

                                     Intelli-sense wizard

  1. Scroll to the name you want to add, or type the first letters of the name until it becomes visible in the list. 
  2. Select the name by clicking. The wizard displays the detailed description of the selected object in the popup text box. 
  3. Double-click the name to insert it into the equation expression.
Optionally you can change the key combination that invokes code completion in AnyLogic preferences dialog, on the Key combinations page.

Some tips for using code assist