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 (Alt + underlined characters in dialog boxes as accelerators).


Windows Mac OS
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 most recently created / opened model.

You can also configure this button to Run the previously launched experiment in the AnyLogic preferences.

Edit

Ctrl+X

Cmd+X

Cut the currently selected element to the Clipboard.

Ctrl+C

Cmd+C

Copy the currently selected element to the Clipboard.

Ctrl+V

Cmd+V

Paste the element from the 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 and +

Cmd and +

Zoom in the canvas.

Ctrl and -

Cmd and -

Zoom out the canvas.

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 the Clipboard.

Ctrl+C or
Ctrl+Insert

Cmd+C

Copy the currently selected text to the Clipboard.

Ctrl+V or
Shift+Insert

Cmd+V

Paste text from the 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.

Mouse shortcuts

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


Windows Mac OS
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.

Presentation Window

Ctrl+scroll

Ctrl+scroll

Zoom in or out of the presentation window.

Right-click and drag

Cmd+drag

Pan the the presentation window.

3D Scene

Alt+drag

Option+drag

Rotate the 3D scene.