如何在MATLAB编辑器中启用自动单词补全功能? [英] How to enable auto word completion in the MATLAB Editor?

查看:233
本文介绍了如何在MATLAB编辑器中启用自动单词补全功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过按Tab键在MATLAB命令提示符下使用自动单词补全功能,但是在对m文件使用编辑器时无法执行此操作.有什么方法可以在编辑器中使用制表符补全吗?

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?

推荐答案

根据键盘偏好设置" 菜单.

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.

对于较旧的MATLAB版本,编辑器中的制表符补全仅适用于已经在工作区中创建的函数名和变量.因此,如果您正在使用变量foobar编写脚本,并且尚未在工作区(即命令窗口)中创建该变量,则在编辑器中使用制表符补全时将不会显示foobar.当我在MATLAB 7.8.0(R2009a)中进行测试时就是这种情况.

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).

这篇关于如何在MATLAB编辑器中启用自动单词补全功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆