Skip to Main Content Skip to Search
Product Documentation

Keyboard Preferences

Keyboard preferences enable you to set tab completion, function hints, and delimiter matching in the Command Window and Editor, as described in the table that follows.

To set Keyboard Preferences, select File > Preferences > Keyboard, and then adjust preference options as described in the table below.

PreferenceUsage

Tab completion

Select the tool or tools in which you want the Tab key to complete names known to MATLAB after you type the first few letters of the name.

For details, see Complete Names in the Command Window Using the Tab Key and Complete Names in the Editor Using the Tab Key

Select Tab key narrow completions to have MATLAB continue to reduce the list of possible names for completion as you type each additional character and press the Tab key.

Function hints

Specify, the selected tool or tools that you want to display syntax function hints.

When enabled, if you type a function name with an opening parenthesis, and then pause, a tooltip opens showing the basic syntax for the function. For example:

For details, see View Function Syntax Hints While Entering a Statement.

Delimiter Matching

Specify when and if MATLAB alerts you to matched and mismatched delimiters. Delimiters include parentheses, brackets, braces, and, in the Editor only, paired keywords.

If you select Match while typing, MATLAB alerts you to matched and mismatched delimiters as you type.

If you select Match on arrow key, MATLAB alerts you to matched and mismatched delimiters when you move the cursor over a delimiter using an arrow key.

For details, see Avoid Mismatched Parentheses, Brackets, Braces, and Paired Keywords.

Select one of these Show match with options to specify how MATLAB indicates matching delimiters:

  • Balance — The corresponding delimiter highlights briefly.

  • Underline — Both delimiters in the pair display underlines briefly.

  • Highlight — Both delimiters in the pair highlight briefly.

Select one of these Show mismatch with options to specify how MATLAB indicates mismatched delimiters

  • Beep — MATLAB beeps.

  • Strikethrough — The delimiter you type appears crossed out briefly.

  • None — There is no alert.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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