Keyboard and Mouse Actions for Simulink Modeling

Note

On Macintosh platforms, use the command key instead of Ctrl.

Action Menu Search

You can access actions in the Simulink® Editor using the Ctrl+. shortcut. For AZERTY keyboards, the equivalent shortcut is the Ctrl+Shift+. 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.

Object Selection and Clipboard Operations

Objects include blocks, signal lines, signal labels, and annotations.

TaskAction

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 labelsDrag.
Delete selected object

Delete or Backspace

Cut

Ctrl+X

Paste

Ctrl+V

Duplicate object

Ctrl+C, Ctrl+V

Undo

Ctrl+Z

Redo

Ctrl+Y

Block and Signal Line Shortcuts and Actions

TaskAction

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:

  • Click inside the selection box.

  • Press Enter.

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

Signal Name and Label Actions

The signal name appears in a label on the signal line.

TaskAction
Name a signal lineDouble-click the signal and type its name.
Name a branch of a named signal lineDouble-click the branch.
Name every branch of a signal Right-click the signal, select Properties, and use the dialog box.
Delete signal label and nameDelete 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 labelCtrl+drag the signal label.
Change the label fontSelect the signal line (not the label), and then on the Format tab, click Fonts for Model.

Simulation Keyboard Shortcuts

TaskAction

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

Debugging and Breakpoints Keyboard Shortcuts

TaskAction

Step

F10

Step in

F11

Step out

Shift+F11

Run

F5

Set/Clear breakpoint

F12

Zooming and Scrolling Shortcuts

TaskAction
Zoom inCtrl++
Zoom outCtrl+-
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 objectDrag the Zoom button from the palette to the object.
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.

Library Browser Shortcuts

TaskShortcut
Open a modelCtrl+O
Open Library Browser from a modelCtrl+Shift+L
Move selection down in the Blocks or Libraries paneDown arrow
Move selection up in the Blocks or Libraries paneUp arrow
Expand a node in the Libraries paneRight arrow
Collapse a node in the Libraries paneLeft arrow
Refresh Libraries paneF5
Show parent library in Blocks paneEsc
Select a block found with the search tool in the Blocks paneCtrl+R
Insert the selected block in a new modelCtrl+I
Increase zoom in the Blocks paneCtrl++
Decrease zoom in the Blocks paneCtrl+-
Reset zoom to default in the Blocks paneAlt+1
Find a blockCtrl+F
CloseCtrl+W

File Operations

TaskAction

Open model

Ctrl+O

Create a model

Ctrl+N

Print

Ctrl+P

Save all modified models in active model hierarchy

Ctrl+S

Save active referenced model

Ctrl+Shift+S

Close model

Ctrl+W

Related Topics