Documentation Center

  • Trial Software
  • Product Updates

Keyboard and Mouse Shortcuts for Simulink

In the following tables, if the shortcut is called Ctr+N, for example, it means to hold down the Ctrl key and press the N key.

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

Model Viewing Shortcuts

TaskShortcut
Zoom inCtrl++
Zoom outCtrl+-
Zoom to normal (100%)Alt+1
Fit diagram to screen Spacebar

Pan

Hold the mouse scroll wheel down and drag the mouse

Shift+left arrow (or the right, up, or down arrow key) or for finer panning, just the arrow key

Pan with mouseSpacebar + drag mouse
Open sample time legendCtrl+J
Remove highlightingCtrl+Shift+H
PrintCtrl+P

Model Editing Shortcuts

TaskShortcut

Open model

Ctrl+O

Create a new model

Ctrl+N

Select all blocks

Ctrl+A

Cut

Ctrl+X
Delete selectionDelete or Backspace

Paste

Ctrl+V
Move selectionMake selection and use arrow keys

Undo

Ctrl+Z

Redo

Ctrl+Y

Find block

Ctrl+F

Open Model Explorer

Ctrl+H

Open Configuration Parameters dialog box

Ctrl+E

Refresh Model blocks

Ctrl+K

Update diagram

Ctrl+D

Save

Ctrl+S

Close model

Ctrl+W

Library Browser Shortcuts

You can use these shortcuts in the Library Browser.

TaskShortcut
Select Libraries or Blocks panes or tools on the Search toolbarTab
Open a modelCtrl+O
Move node selection down in the Libraries pane tree viewDown arrow
Move node selection up in the Libraries pane tree viewUp arrow
Expand a node in the Libraries pane tree viewRight arrow
Collapse a node in the Libraries pane tree viewLeft arrow
Refresh Tree View paneF5
Layout (List View pane)Ctrl+L
Layout (Grid View pane)Ctrl+G
Select a block found with the search tool in the Blocks paneCtrl+R
Insert the selected block in a new modelCtrl+I
Increase the Library Browser font sizeCtrl++
Decrease the Library Browser font sizeCtrl+-
Use compact block iconsCtrl+1
Use small block iconsCtrl+2
Use medium block iconsCtrl+3
Use large block iconsCtrl+4
Find a blockCtrl+F
CloseCtrl+W

Block Editing Shortcuts

TaskShortcut

Select one block

Left mouse button

Select multiple blocks

Shift + left mouse button

Select one or more blocks before using the following shortcuts.

TaskShortcut

Copy block from another Simulink® Editor window

Drag block from one window to another.

Move block

Drag block

Resize block, keeping same ratio of width and height

Shift, grab a corner of the block selection box and resize it.

Resize block from the center

Ctrl, grab a corner of the block selection box and resize it.

Rotate block clockwise

Ctrl+R

Rotate block counterclockwise

Ctrl+Shift+R

Flip block

Ctrl+I

Duplicate block

Ctrl+C, then Ctrl+V

Connect blocks

Select output port, hover over input port, and Ctrl + left mouse button

Disconnect block

Shift + drag block

Create subsystem from selected blocks

Ctrl+G

Open selected subsystem

Enter

Go to parent of selected subsystem

Esc

Comment through a block

Select commented block and Ctrl+Shift+Y

Uncomment

Ctrl+Shift+X

Apply block name edit

While editing block name, Esc

Go to library block

Ctrl+L

Masking Shortcuts

TaskShortcut

Mask subsystem

Ctrl+M

Look under block mask

Ctrl+U

Line Editing Shortcuts

TaskShortcut

Select one line

Left mouse button

Select multiple lines

Shift + left mouse button

Select one or more signal lines before using the following shortcuts.

TaskShortcut

Draw branch line

Ctrl + then drag line; or right mouse button + drag line

Route lines around blocks

Shift + draw line segments

Move line segment

Drag segment

Move vertex

Drag vertex

Signal Label Editing Shortcuts

ActionShortcut

Create signal label

Double-click line, then enter label

Copy signal label

Ctrl + drag label

Move signal label

Left mouse button + drag label

Edit signal label

Click in label, then edit

Annotation Editing Shortcuts

ActionShortcut

Create annotation

Double-click in diagram, then enter text

Copy annotation

Ctrl+C, then Ctrl+V, or right mouse button + Copy

Move annotation

Left mouse button + drag annotation

Edit annotation

Click in text, then edit

Simulation and Code Generation Shortcuts

TaskShortcuts

Build RTW target

Ctrl+B

Open Configuration Parameters dialog box

Ctrl+E

Start simulation

Ctrl+T

Stop simulation

Ctrl+Shift+T

Debugging and Breakpoints Shortcuts

TaskShortcut

Step

F10

Step in

F11

Step out

Shift + F11

Run

F5

Set/Clear breakpoint

F12

Was this topic helpful?