简体   繁体   English

Octave GUI 编辑器中的变量完成

[英]Variable completion in Octave GUI Editor

I mean to get completion of variable names, function names, function argument names, and keywords in Octave, similarly as in Eclipse CDT, eg This works in the Command window, but not in the Editor, where only keywords and functions can be completed.我的意思是在 Octave 中完成变量名、函数名、函数参数名和关键字,类似于在 Eclipse CDT 中,例如这在命令窗口中有效,但在编辑器中无效,在那里只能完成关键字和函数。

Official documentation indicates <Tab> and <M-?> should work. 官方文档表明<Tab><M-?>应该可以工作。 If I press <Tab> I get a Tab character inserted.如果我按<Tab>我会插入一个 Tab 字符。 And I do not know which is the M odifier key.我不知道这是M odifier关键。 Plus, I have a Spanish keyboard, so the question mark is obtained with <Shift>+' , so I am not sure how will it work if I find the correct M key.另外,我有一个西班牙语键盘,所以问号是用<Shift>+'获得<Shift>+' ,所以我不确定如果我找到正确的M键它会如何工作。

How can I enable it for the Editor?如何为编辑器启用它?

Notes:笔记:

  1. Help -> About shows帮助->关于节目

    GNU Octave, version 4.4.1... configured for "x86_64-w64-mingw32"... GNU Octave,版本 4.4.1... 配置为“x86_64-w64-mingw32”...

    Using Octave portable under Win 10.在 Win 10 下使用 Octave 便携版。

  2. I found files <octave-dir>\\etc\\inputrc.default and <octave-dir>\\share\\octave\\4.4.1\\m\\startup\\inputrc我找到了文件<octave-dir>\\etc\\inputrc.default<octave-dir>\\share\\octave\\4.4.1\\m\\startup\\inputrc

  3. There is a file C:\\Users\\user1\\.config\\octave\\qt-settings containing有一个文件C:\\Users\\user1\\.config\\octave\\qt-settings包含

    ... [editor] ... codeCompletion=true ... codeCompletion_threshold=2 codeCompletion_keywords=true codeCompletion_octave_builtins=true codeCompletion_octave_functions=true codeCompletion_document=false codeCompletion_case=true codeCompletion_replace=false ... tab_indents_line=false
  4. This refers to the speed of readline for Octave under Win. 是指 Win 下 Octave 的readline速度。 I have speed issues with readline of my Portable Msys2 under Win 10, but this is a different issue.在 Win 10 下,我的 Portable Msys2 的readline存在速度问题,但这是一个不同的问题。

On the top of the editor widget, select Edit > Preferences .在编辑器小部件的顶部,选择Edit > Preferences Select the Editor tab.选择Editor选项卡。 Look for Auto Completion .寻找Auto Completion Select Match words in document .选择Match words in document

There are essentially no references that mention completion specifically in the editor.基本上没有参考文献专门在编辑器中提到完成。 The only one I found , from 2014, stating that: 我发现唯一一个,从 2014 年开始,说明:

There is no editor completion on all known function names, nor on parameter lists of known functions.没有对所有已知函数名称的编辑器补全,也没有对已知函数的参数列表。 There is an open bug report requesting function name completion in the editor, see http://savannah.gnu.org/bugs/?41371 .编辑器中有一个开放的错误报告要求完成函数名称,请参阅http://savannah.gnu.org/bugs/?41371

The GUI is an experimental new feature in the 3.8 release, please consider helping to improve it for 4.0 by joining the maintainers mailing list or participating on the bug tracker (even submitting feature request bugs if you want). GUI 是 3.8 版本中的一项实验性新功能,请考虑通过加入维护者邮件列表或参与错误跟踪器(如果需要,甚至提交功能请求错误)来帮助改进 4.0。

So at that time it was not available.所以在那个时候它是不可用的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM