Keyboard Shortcuts and Mouse Actions for System Composer Modeling
R2026bYou 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
| Task | Shortcuts |
|---|---|
| Open model | Ctrl+O |
| Create model | Ctrl+N |
| Save all modified models in current model hierarchy | Ctrl+S |
| Close model | Ctrl+W |
| Cut | Ctrl+X |
| Copy | Ctrl+C |
| Paste | Ctrl+V |
| Undo | Ctrl+Z |
| Redo | Ctrl+Y, Ctrl+Shift+Z (Simulink® Online™) |
| Find search string | Ctrl+F |
Zoom and Pan
| Task | Shortcuts and Actions |
|---|---|
| Fit diagram to window | Space bar |
| Fit selection to window | Space bar+F |
| Zoom in | Ctrl+Plus (+) or space bar+Plus (+) |
| Zoom out | Ctrl+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 element | Drag the Zoom button
|
| 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 model | Click 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 vertically | Ctrl+scroll wheel |
| Pan horizontally | Shift+scroll wheel |
| Pan by page | Shift+space bar+left, right, up, or down arrow |
Navigate Within Model
| Task | Shortcuts and Actions |
|---|---|
| Open selected model | Double-click Enter |
| Change tabs | Ctrl+Shift+Tab |
| Enter selected component, referenced model, or Stateflow® chart | Enter |
| Go to parent of selected component, referenced model, or Stateflow chart | Esc |
| Go to last viewed component in model hierarchy navigation history | Ctrl+[ |
| Go to next viewed component in model hierarchy navigation history | Ctrl+] |
| Open the Model Explorer | Ctrl+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.
| Task | Shortcuts and Actions |
|---|---|
| Toggle between movement and selection mode | M |
| Select all components, connectors, and annotations | Ctrl+A |
| Clear selection | Ctrl+Alt+A |
| Select one or more model elements | Drag 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 element | Drag 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 directions | Start dragging the element, and then press Shift. |
Add and Edit Model Elements
| Task | Shortcuts 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 Editor | Ctrl+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 Browser | Ctrl+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 windows | Drag elements between windows. |
| Delete selected model elements | Delete or Backspace |
Connect Model Elements
| Task | Shortcuts 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 components | Ctrl+Shift+X |
| Comment through selected components | Ctrl+Shift+Y |
Name Model Elements
| Task | Shortcuts and Actions |
|---|---|
| Rename selected model element | Click or double-click the label. |
| Name connector | Double-click the connector and type its name. |
| Display name on branch of a named connector | Double-click the branch. |
| Name every branch of a connector | Right-click the connector, select Properties, and use the Signal Properties dialog box to rename the branches. |
| Delete connector label and name | Delete characters in the label, or delete the name in Signal Properties dialog box. |
| Delete connector label only | Right-click the label and select Delete Label. |
| Copy connector label | Ctrl+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 ports | Select the port and use the up or down arrow keys to move the port to an adjacent location. |
Format Architectural Diagram
| Task | Shortcuts and Actions |
|---|---|
| Automatically arrange model | Ctrl+Shift+A |
| Resize component, maintaining ratio of width and height | Shift+drag handle |
| Resize component about the center | Ctrl+drag handle |
| Route connector around components | Shift+drag while drawing |
| Create component from selection | Ctrl+G |
| Create component or area from empty selection | An 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 font | Select 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
| Task | Shortcuts 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
| Task | Shortcuts |
|---|---|
| Start simulation | Ctrl+T or F5 |
| Stop simulation | Ctrl+Shift+T |
| Update model | Ctrl+D |
| Open Configuration Parameters dialog box | Ctrl+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.
| Task | Shortcuts |
|---|---|
| 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. |