Keyboard and Mouse Actions for Simulink Modeling

Note

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

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 right mouse button

Ctrl+drag

Move any object, including signal labelsDrag
Delete selected object

Delete or Backspace

Edit > Clear

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; select the block from the menu

Get prompted for suggested block based on context

Double-click at end of a line drawn from an existing block; 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, click the port you want connect to

Select first block, Ctrl+click 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; 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 subsystems, buses, and other blocks that take multiple inputs

Drag toward the port from a compatible block or signal line

Drag from the edge of the block or bus 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 block

Shift+drag block

Create subsystem from selected blocks

Ctrl+G

Open selected subsystem

Enter

Go to parent of selected subsystem

Esc

Find block

Ctrl+F

Mask subsystem

Ctrl+M

Look under block mask

Ctrl+U

Comment through a block

Ctrl+Shift+Y

Comment out/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 signal and type 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 label or delete name in Signal Properties dialog box.
Delete signal label only Right-click label and select Delete Label.
Open signal label text box for edit

Double-click signal line

Click label

Move signal label Drag label to a new location on same signal line
Copy signal labelCtrl+drag signal label
Change the label fontSelect the signal line (not the label) and use Diagram > Format > Font Style

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

Deselect the File > Simulink Preferences > Editor Preferences > Scroll wheel controls zooming preference 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