Documentation

我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

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

Ctrl+drag

Move any object, including signal labelsDrag
Delete selected objectDelete 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

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

Select first block, Ctrl+click second block

Drag from port to port

Draw branch line

Ctrl+drag line

Right-mouse button+drag

Route lines around blocks

Shift+drag while drawing

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

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 editDouble-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
Zoom with mouseCtrl+scroll wheel

Select the File > Simulink Preferences > Editor Preferences > Scroll wheel controls zooming preference to zoom using just the scroll wheel.

Zoom in on objectDrag the Zoom button from the palette to the object
Fit diagram to screen Spacebar
Scroll viewArrow keys

Shift+arrow for larger pans

Scroll with mouseSpacebar+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

Ctrl+S

Close model

Ctrl+W

Related Examples

Was this topic helpful?