
Entering Statements in the Edito r/Debugger
as you reach the 75th column, the comment automatically continues on the
next line.
Tab Completion in the Editor/Debugger
The Editor/Debugger helps you automatically complete the names o f these
itemsasyoutypetheminanM-file:
• F unctions or models on the search path or in the current dire ctory
• Variables, including structures, in the current workspace, w here the
current workspace is shown in the Stack on the toolbar.
• H andle Graphics properties for figures in the curre nt workspace
Type the first few characters of the item name and then press the Tab key.
To use tab completion, you must have the tab completion preference for the
Editor/Debugger selected. For details, se e “Keyboard Preferences” on p age
3-43.
Tab completion is a lso availab le in the C ommand Window. There are a few
minor differences in how tab completion works in the Command Window,
the most notable b eing that Command Window tab completion supports the
completion of filenames, whereas the Editor/D ebugger tab completion do es
not.
Note Tab completion does not complete the name s of variables you define in
an M-file, but only those variables in the current workspace. This means that
while editing, it only completes the names of variables in the base workspace.
While debugging, it only completes the names of variables in the current
function workspace.
These examples demonstrate how to use tab completion:
• “Basic Example — Unique Completion” on page 6-22
• “M ultiple Possible C ompletions” on page 6-23
• “Narrowing CompletionsShown”onpage6-24
6-21
Commentaires sur ces manuels