Keyboard Shortcuts in the Editor

Following is the list of keys that serve as shortcuts for using the Editor. This list does not include shortcut keys (sometimes called hot keys) for menu items—you can view those on the menus. If you select the Emacs Editor/Debugger Key Bindings preference, you can also use the Ctrl+key combinations shown. See also general desktop Keyboard Shortcuts.

Key or Mouse Action for Windows® Preference

Additional Control Key for Emacs Preference

Key or Mouse Action for Macintosh® Preference

Operation

Up arrow key

Ctrl+P

Up arrow key

Move to previous line.

Down arrow key

Ctrl+N

Down arrow key

Move to next line.

Ctrl+Home

None

Cmd+Home

Move to top of file.

Ctrl+End

None

Cmd+End

Move to end of file.

Ctrl+ Up arrow key

None

Home

Scroll up without moving cursor position (with cell mode disabled).

Move to top of current cell or top of previous cell (with cell mode enabled).

Ctrl+ Down arrow key

None

End

Scroll down without moving cursor position (with cell mode disabled).

Move to top of next cell (with cell mode enabled).

Page Down

Ctrl+V

Page Down

Move down one screen.

Page Up

Alt+V

Page Up

Move up one screen.

Left arrow key

Ctrl+B

Left arrow key

Move back one character.

Right arrow key

Ctrl+F

Right arrow key

Move forward one character.

Ctrl+ Left arrow key

None

Option+ Left arrow key

Move left one word.

Ctrl+ Right arrow key

None

Option+ Right arrow key

Move right one word.

Home

Ctrl+A

Cmd+ Left arrow key

Move to beginning of line.

End

Ctrl+E

Cmd+ Right arrow key

Move to end of line.

Delete

Ctrl+D

Forward Delete

Delete character after cursor.

Backspace

none

Delete

Delete character before cursor.

None

Ctrl+K

None

Cut contents (kill) to end of line.

Double-click

None

Double-click

Select current word. To select additional words, hold mouse after second click and continue dragging left or right.

Triple-click

None

Triple-click

Select current line. To select additional lines, hold mouse after second click and continue dragging up or down.

Ctrl+Shift+ Left arrow key

None

Option+Shift+ Left arrow key

Select word to the left

Ctrl+Shift+ Right arrow key

None

Option+Shift+ Right arrow key

Select word to the right.

Shift+Home

None

Cmd+Shift+ Left arrow key

Select to beginning of line.

Shift+End

None

Cmd+Shift+ Right arrow key

Select to end of line.

Shift+Page Up

Ctrl+Shift+V

Shift+Page Up

Select one screen up.

Shift+Page Down

Alt+Shift+V

Shift+Page Down

Select one screen down.

Ctrl+Shift+Home

None

Cmd+Shift+Home

Select to top of file.

Ctrl+Shift+End

None

Cmd+Shift+End

Select to end of file.

Shift+Enter

None

Shift+Enter

Add a new line that is not indented.

Insert

None

None

Change to overwrite mode from insert mode, or change to insert mode from overwrite mode. View current mode in the status bar: OVR is gray for insert mode. In overwrite mode, what you type replaces existing text, and the cursor is a wide block. (Not supported on Macintosh platforms.)

Shift+F5

None

Shift+F5

Exit debug mode. Equivalent to typing dbquit. The Command Window displays the standard prompt >>.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS