Main Content

Keyboard Shortcuts and Mouse Actions for System Composer Modeling

R2026b

You can use keyboard shortcuts and mouse actions to model systems in System Composer™. To open this page from a model, press Shift+? or click Keyboard Shortcuts on the navigation bar.

Note

When you use the keyboard shortcuts on macOS:

  • Press command (⌘) instead of Ctrl.

  • Press option instead of Alt.

Perform File and Clipboard Actions

TaskShortcuts
Open modelCtrl+O
Create modelCtrl+N
Save all modified models in current model hierarchyCtrl+S
Close modelCtrl+W
CutCtrl+X
CopyCtrl+C
PasteCtrl+V
UndoCtrl+Z
RedoCtrl+Y, Ctrl+Shift+Z (Simulink® Online™)
Find search stringCtrl+F

Zoom and Pan

TaskShortcuts and Actions
Fit diagram to windowSpace bar
Fit selection to windowSpace bar+F
Zoom inCtrl+Plus (+) or space bar+Plus (+)
Zoom outCtrl+Minus (-) or space bar+Minus (-)
Zoom to 100%Ctrl+0, Alt+1, or space bar+0
Zoom with scroll wheel

Scroll wheel

Zoom in on model elementDrag the Zoom button from the palette to the element.
View portion of architectural diagram visible in model window relative to full architectural diagram with miniature map

Zoom or pan to part of the model.

When only part of the model is visible, press the space bar until the miniature map appears.

View different portion of modelClick the destination in the miniature map.
Pan

Drag the highlighted area in the miniature map.

Drag with middle button.

Hold the Space bar and drag.

When a scroll bar appears, to move the scroll bar with your keyboard, press space bar+left, right, up, or down arrow.

Pan verticallyCtrl+scroll wheel
Pan horizontallyShift+scroll wheel
Pan by pageShift+space bar+left, right, up, or down arrow

Navigate Within Model

TaskShortcuts and Actions
Open selected model

Double-click

Enter

Change tabsCtrl+Shift+Tab
Enter selected component, referenced model, or Stateflow® chartEnter
Go to parent of selected component, referenced model, or Stateflow chartEsc
Go to last viewed component in model hierarchy navigation historyCtrl+[
Go to next viewed component in model hierarchy navigation historyCtrl+]
Open the Model ExplorerCtrl+H

Select and Move Model Elements

Selected elements have a solid blue outline. The most recently selected element has blue corner brackets in addition to the outline. To represent the cursor when you use the keyboard for selection, a blue box with dashed lines surrounds the element.

By default, the model is in movement mode. To switch to selection mode, press M.

TaskShortcuts and Actions
Toggle between movement and selection mode

M

Select all components, connectors, and annotationsCtrl+A
Clear selectionCtrl+Alt+A
Select one or more model elementsDrag a selection box around the model elements you want to select. Start the selection box on an empty spot on the canvas.
Move any model elementDrag the element.
Move selected elements

Drag one of the selected elements.

Drag the selection box.

After selecting elements with the keyboard, in selection mode, press the left, right, up, or down arrow.

Change selection to closest similar element in a direction

In selection mode, press the left, right, up, or down arrow.

Move cursor to closest element in a specific direction, regardless of similarity to the selected element

In selection mode, press Ctrl+Shift+left, right, up, or down arrow.

Change selection to element at top-left of canvas

Ctrl+Home

On macOS, press home.

Change selection to element at bottom-right of canvas

Ctrl+End

On macOS, press end.

Change selection to leftmost element relative to cursor

Home

On macOS, press control+left arrow.

Change selection to rightmost element relative to cursor

End

On macOS, press control+right arrow.

Select additional elements adjacent to the current element

To select additional adjacent elements with the keyboard, in selection mode, press Shift+left, right, up, or down arrow.

To select additional adjacent elements with the pointer, press Shift while dragging a selection box around the additional elements.

Select additional elements that are not adjacent to the selected element

To select additional elements with the keyboard, in selection mode, press Ctrl+left, right, up, or down arrow and navigate to the element you want to select. Then, add the element to the selection by pressing Ctrl+space bar.

On macOS, to add the current element to the selection, press command+shift+space bar or shift+space bar.

To select additional elements with the pointer, press Shift and click.

Constrain movement of model elements to vertical and horizontal directionsStart dragging the element, and then press Shift.

Add and Edit Model Elements

TaskShortcuts and Actions
Open or hide the Property Inspector

Ctrl+Shift+I

On macOS, press command+option+O.

Before R2023b: On macOS, press command+shift+I.

Open or hide the Interface EditorCtrl+Shift+P (since R2023b)
Add block to model at current location with the quick insert menu

Double-click the System Composer Editor canvas and start typing the block name, then select the block from the menu.

Press Ctrl+Period (.) twice and start typing the block name. Then, press the down arrow to select the block from the list, and press Enter to insert the block.

On AZERTY keyboards, press Ctrl+Shift+Period (.) instead of Ctrl+Period (.).

Open the Library BrowserCtrl+Shift+L
Add annotation to model at current location with the quick insert menu

Double-click the System Composer Editor canvas, type the annotation content, and then select the annotation option.

Press Ctrl+Period (.) twice and type the annotation content. Then, press the down arrow to select the annotation option, and press Enter to insert the annotation.

On AZERTY keyboards, press Ctrl+Shift+Period (.) instead of Ctrl+Period (.).

Copy selected model elements

Ctrl+drag

Drag elements with the right mouse button.

Copy selected model elements between System Composer Editor windowsDrag elements between windows.
Delete selected model elementsDelete or Backspace

Connect Model Elements

TaskShortcuts and Actions
Connect components with connectors

Drag from port to port

Select the first component, then Ctrl+click a second component.

Branch connector

Ctrl+drag line

Right mouse button+drag

Add ports to components

Drag toward the port from a compatible block or signal line.

Drag from the edge of the block that you want to add the port to.

Click the edge of the port, and then drag.

Click the edge of the port, move the cursor over the signal type (signal, bus, or connector) from the menu, and drag.

Disconnect selected components

Press Shift, then drag component.

After selecting blocks with the keyboard, press M then Shift+left, right, up, or down arrow.

Comment out or uncomment selected componentsCtrl+Shift+X
Comment through selected componentsCtrl+Shift+Y

Name Model Elements

TaskShortcuts and Actions
Rename selected model elementClick or double-click the label.
Name connectorDouble-click the connector and type its name.
Display name on branch of a named connectorDouble-click the branch.
Name every branch of a connectorRight-click the connector, select Properties, and use the Signal Properties dialog box to rename the branches.
Delete connector label and nameDelete characters in the label, or delete the name in Signal Properties dialog box.
Delete connector label onlyRight-click the label and select Delete Label.
Copy connector labelCtrl+drag the connector label.
Edit port labels on components

Select the port. Click the port label to edit port labels on components.

Select the port. Click the port label cue or press F2.

Move portsSelect the port and use the up or down arrow keys to move the port to an adjacent location.

Format Architectural Diagram

TaskShortcuts and Actions
Automatically arrange modelCtrl+Shift+A
Resize component, maintaining ratio of width and heightShift+drag handle
Resize component about the centerCtrl+drag handle
Route connector around componentsShift+drag while drawing
Create component from selectionCtrl+G
Create component or area from empty selectionAn empty selection box creates a component outline. Click inside the outline to create a Component block. Use the number keys to choose type of component to create which includes component, variant component, reference component, and area.
Change connector label fontSelect the connector (not the label). Then, on the Format tab, click the Font Properties button arrow, and then click Fonts for Model.

Perform Generic Actions

TaskShortcuts and Actions
Perform generic action with the quick action search menu

Double-click the System Composer Editor canvas, select the Actions tab, and start typing the action name or description, and then select the action from the list.

Press Ctrl+Period (.) and start typing the action name or description. Then, press the down arrow to select the action and press Enter to perform it.

On AZERTY keyboards, press Ctrl+Shift+Period (.) instead of Ctrl+Period (.).

Perform context-sensitive action

Select a model element and then open the quick action search menu with a right-click mouse action.

Simulate, Update, and Generate Code for Models

TaskShortcuts
Start simulationCtrl+T or F5
Stop simulationCtrl+Shift+T
Update modelCtrl+D
Open Configuration Parameters dialog boxCtrl+E
Build model (for code generation)Ctrl+B

Debug Simulations

Since R2023b

The keyboard shortcuts in the table are the same as the shortcuts for the System Composer Editor, the Simulink Editor, the Stateflow Editor, and the MATLAB Function Block Editor.

TaskShortcuts
Step over

F10

On macOS, press shift+command+O.

Step in

F11

On macOS, press shift+command+I.

Step out

Shift+F11

On macOS, press shift+command+U.

See Also

Topics