Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable auto word completion in the MATLAB Editor?

I can use auto word completion at the MATLAB command prompt by pressing tab, but I can not do that while using the Editor for an m file. Is there any way to use tab completion in the Editor?

like image 339
Syed Jamil Avatar asked Jul 11 '10 16:07

Syed Jamil


People also ask

How do you use auto completion?

Autocomplete, or word completion, is a feature in which an application predicts the rest of a word a user is typing. In Android and iOS smartphones, this is called predictive text. In graphical user interfaces, users can typically press the tab key to accept a suggestion or the down arrow key to accept one of several.

Does MATLAB have IntelliSense?

Matlab has auto-complete. It doesn't have IntelliSense.

How do I turn off suggestions in MATLAB?

To turn off automatic suggestions and completions in the MATLAB Editor, on the 'View' tab in the MATLAB toolstrip, in the 'Display' section, click the 'Automatic Completions' button off. When automatic suggestions and completions are off, you can use the 'Tab' key to manually show suggestions and completions.


1 Answers

According to this MathWorks blog post, tab completion works in the Editor as it does in the Command Window for MATLAB R2010a, but you may have to turn it on in the Keyboard Preferences menu.

For older MATLAB versions, tab completion in the Editor only works for function names and variables that have already been created in the workspace. So, if you are writing a script with a variable foobar, and that variable hasn't yet been created in the workspace (i.e. Command Window), then foobar won't show up when using tab completion in the Editor. This was the case when I tested it in MATLAB 7.8.0 (R2009a).

like image 162
gnovice Avatar answered Nov 20 '22 02:11

gnovice