AnyLogic
Expand
Font size

Keyboard and mouse shortcuts

AnyLogic provides you with a number of keyboard and mouse shortcuts, which you can use to perform actions when working with the certain application areas.

Keyboard shortcuts

Keyboard shortcuts are assigned to certain commands that enable you to use the keyboard instead of the mouse when working in AnyLogic. The standard Windows shortcuts are also supported.

Windows macOS Action
Application  
Alt + F4 Cmd + Q Exit AnyLogic.
F1 F1 Open AnyLogic help.
Model  
Ctrl + N Cmd + N Create a new model.
Ctrl + O Cmd + O Open an existing model.
Ctrl + S Cmd + S Save the currently selected model.
Ctrl + Shift + S Cmd + Shift + S Save all open models.
Simulation  
F7 F7 Build the currently selected model.
F5 F5 Run the previously launched simulation. After you create/open a model, the action executed by this command will depend on Preferences > Advanced > Run button (F5) preference: either it launches the just created / opened model or it launches the previously run experiment.
Edit  
Ctrl + X Cmd + X Cut the currently selected element to clipboard.
Ctrl + C Cmd + C Copy the currently selected element to the Clipboard.
Ctrl + V Cmd + V Paste the element from clipboard.
Del Del Delete the currently selected element.
Ctrl + Z Cmd + Z Undo the previous action.
Ctrl + Y Cmd + Y Redo the previously undone action.
Ctrl + F Cmd + F Search/Replace the specified text strings.
Graphical Editor  
Ctrl + 0 Ctrl + 0 Zoom the graphical editor to 100%.
F2 F2 Rename the element currently selected in the graphical editor.
Ctrl + A Cmd + A Select all elements in the graphical editor.
Arrow keys Arrow keys Move the selected elements up, down, left or right in 10 pixels increments. If snapping to grid is off, the selected elements will move in 1 px increments.
Shift + arrow keys or Alt + arrow keys Shift + arrow keys or Option + arrow keys Move the selected elements up, down, left or right in 1 pixel increments. If snapping to grid is off, the selected elements will move in 10 px increments.
Properties View  
Ctrl + Space Option + Space Open code completion window.
Ctrl + J Cmd + J Open code editor and highlight the code line corresponding to the currently selected code field.
Ctrl + Enter Cmd + Enter Perform refactoring of the element being renamed. Note that this command can only be invoked immediately after modifying the value of the element's Name property field, i.e., before switching to other property fields or elements.
Ctrl + X or Shift + Del Cmd + X Cut the currently selected text to clipboard.
Ctrl + C or Ctrl + Insert Cmd + C Copy the currently selected text to clipboard.
Ctrl + V or Shift + Insert Cmd + V Paste text from clipboard.
Debugging*  
F6

F6

Debug the recently run experiment.
F9 F9 Resume.
F12 F12 Step over.
F11 F11

Step into.

Shift + F11 Shift + F11 Step return.

* These commands are available in AnyLogic Professional and AnyLogic University Researcher editions only.

Mouse shortcuts

There are several modifier keys that you can use to alter the mouse actions when working with the certain application areas:

Windows macOS Action
Projects view  
Ctrl + drag Cmd + drag Create a copy of the current selection.
Graphical editor  
Right-click and drag Space + drag Pan the diagram.
Ctrl + scroll Cmd + scroll Zoom in or out of the diagram.
Alt + click Option + click Select a single element belonging to a group (or a single markup shape from a complex markup element).
Ctrl + drag Cmd + drag Create a copy of the current selection.
Alt + drag Option + drag Move the current selection with snapping to grid temporarily disabled.
Shift + drag Shift + drag Shift the current selection horizontally / vertically while maintaining vertical / horizontal center alignment.
Model window  
Ctrl + scroll Ctrl + scroll Zoom in or out of the model window.
Drag Cmd + drag Pan the model window.
3D Scene  
Alt + drag Option + drag Rotate the 3D scene.
How can we improve this article?