使用一个宏,该宏将插入所选功能,添加括号并自动触发调用提示。这两个弹出窗口无法同时显示,因此请将该宏分配给键盘快捷键,并在该快捷键和撤消快捷键之间交替以添加/删除括号并显示/隐藏功能列表:
komodo.assertMacroVersion(2);if (komodo.view && komodo.view.scintilla) { komodo.view.scintilla.focus(); }var editor = ko.views.manager.currentView.scimoz;var cursor_character = editor.getCharAt(editor.currentPos - 1); //get cursor positioneditor.autoCComplete(); //autocomplete selected function in listeditor.copyText(1,"("); //add left parentheses to bufferif(cursor_character > 96 && cursor_character < 123) { editor.paste(); //add left parentheses to editor after a function name }ko.commands.doCommand("cmd_triggerPrecedingCompletion"); //trigger calltip or function list参考文献
- Scintilla文档:AutoCComplete
- 科莫多命令ID列表



