On Macintosh platforms, use the command key instead of Ctrl.
You can access actions in the Simulink® Editor using the Ctrl+. (period) shortcut. For AZERTY keyboards, the equivalent shortcut is the Ctrl+Shift+. (period) shortcut.
After the action menu appears, start typing the action name or description and select the action from the menu.
To enable context-sensitive search, you can select a part of the model before using the Ctrl+. shortcut. For example, you can select a Gain block.
While the shortcut menu is open, you can toggle between the block and action menus using the Ctrl+. shortcut.
Objects include blocks, signal lines, signal labels, and annotations.
Task | Action |
---|---|
Select an object | Click. |
Select additional objects | Shift+click. |
Select all objects | Ctrl+A |
Copy object | Drag with the right mouse button. Ctrl+drag. |
Move any object, including signal labels | Drag. |
Delete selected object | Delete or Backspace |
Cut | Ctrl+X |
Paste | Ctrl+V |
Duplicate object | Ctrl+C, Ctrl+V |
Undo | Ctrl+Z |
Redo | Ctrl+Y |
Task | Action |
---|---|
Set the main parameter for selected block | Alt+Enter |
Add a block at the current location from shortcut menu | Double-click and start typing the block name, then select the block from the menu. |
Get prompted for suggested block based on context | Double-click at the end of a line drawn from an existing block, then select a suggestion from the list or start typing to select one from the library. |
Open or hide the Property Inspector | Ctrl+Shift+I |
Copy block or model from another Simulink Editor window | Drag between windows. |
Move block | Arrow keys |
Resize block, keeping same ratio of width and height | Shift+drag handle. |
Resize block from the center | Ctrl+drag handle. |
Rotate block clockwise | Ctrl+R |
Rotate block counterclockwise | Ctrl+Shift+R |
Flip block | Ctrl+I |
Connect blocks | Click a port, then click the port you want it to connect to. Select the first block, then Ctrl+click a second block. Drag from port to port. Click a port and hold Shift as you connect to the next port. Hold Shift to make multiple, consecutive connections. |
Draw branch line | Click a port, move the cursor near the line you want to branch, and then click after you see the preview. Select a line, move the cursor toward the element you want to connect with, and then click the port. Ctrl+drag line. Right-mouse button+drag. |
Route lines around blocks | Shift+drag while drawing. |
Interactively add ports to blocks that take multiple inputs | 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. |
Open block label text box for editing | Click the block label. Select the block and use F2. On Macintosh platforms, select the block and use control+return. |
Disconnect block | Shift+drag block. |
Create subsystem from selected blocks | Ctrl+G |
Create subsystem or area from empty selection | To create the highlighted option, which you can change by using the arrow keys or mouse:
Press the number key associated with an option. |
Open selected block | Enter |
Go to parent of active subsystem or referenced model | Esc |
Find block | Ctrl+F |
Mask block | Ctrl+M |
Look under block mask | Ctrl+U |
Comment through a block | Ctrl+Shift+Y |
Comment out or uncomment a block | Ctrl+Shift+X |
Refresh Model blocks | Ctrl+K |
For a linked block, go to the library of the parent block | Ctrl+L |
Open Model Explorer | Ctrl+H |
The signal name appears in a label on the signal line.
Task | Action |
---|---|
Name a signal line | Double-click the signal and type its name. |
Name a branch of a named signal line | Double-click the branch. |
Name every branch of a signal | Right-click the signal, select Properties, and use the dialog box. |
Delete signal label and name | Delete characters in the label or delete the name in Signal Properties dialog box. |
Delete signal label only | Right-click the label and select Delete Label. |
Open signal label text box for editing | Double-click the signal line. Click the label. Select the signal line (not the label) and use F2. On Macintosh platforms, select the signal line (not the label) and use control+return. |
Move signal label | Drag the label to a new location on the same signal line. |
Copy signal label | Ctrl+drag the signal label. |
Change the label font | Select the signal line (not the label), and then on the Format tab, click Fonts for Model. |
Task | Action |
---|---|
Open Configuration Parameters dialog box | Ctrl+E |
Update diagram | Ctrl+D |
Start simulation | Ctrl+T |
Stop simulation | Ctrl+Shift+T |
Build model (for code generation) | Ctrl+B |
Task | Action |
---|---|
Step | F10 |
Step in | F11 |
Step out | Shift+F11 |
Run | F5 |
Set/Clear breakpoint | F12 |
Task | Action |
---|---|
Zoom in | Ctrl++ |
Zoom out | Ctrl+- |
Zoom to normal (100%) | Ctrl+0 or Alt+1 |
Zoom with mouse | Scroll wheel On the Modeling tab, select Environment > Simulink Preferences. On the Editor pane, clear Scroll wheel controls zooming to zoom using Ctrl+scroll wheel. |
Zoom in on object | Drag the Zoom button ![]() |
Fit diagram to screen | Spacebar |
Scroll view | Arrow keys Shift+arrow for larger pans. |
Scroll with mouse | Spacebar+drag. Hold the scroll wheel down and drag the mouse. |
Task | Shortcut |
---|---|
Open a model | Ctrl+O |
Open Library Browser from a model | Ctrl+Shift+L |
Move selection down in the Blocks or Libraries pane | Down arrow |
Move selection up in the Blocks or Libraries pane | Up arrow |
Expand a node in the Libraries pane | Right arrow |
Collapse a node in the Libraries pane | Left arrow |
Refresh Libraries pane | F5 |
Show parent library in Blocks pane | Esc |
Select a block found with the search tool in the Blocks pane | Ctrl+R |
Insert the selected block in a new model | Ctrl+I |
Increase zoom in the Blocks pane | Ctrl++ |
Decrease zoom in the Blocks pane | Ctrl+- |
Reset zoom to default in the Blocks pane | Alt+1 |
Find a block | Ctrl+F |
Close | Ctrl+W |
Task | Action |
---|---|
Open model | Ctrl+O |
Create a model | Ctrl+N |
Ctrl+P | |
Save all modified models in active model hierarchy | Ctrl+S |
Save active referenced model | Ctrl+Shift+S |
Close model | Ctrl+W |