Komodo编辑自动完成JS对象文字
问题是 Komodo 智能感知看不到这样定义的对象方法:
var App = window.App || {
method: function() {
...
}
}
键入“App”。没有给出任何结果。
但是,定义如下所示的对象效果很好:
var App = {
method: function(){
}
}
How to make autocompletion work at first example pattern?
The problem is Komodo intelli-sense doesn't see object methods defined this way:
var App = window.App || {
method: function() {
...
}
}
Typing "App." gives no result.
However, defining an object like below works fine:
var App = {
method: function(){
}
}
How to make autocompletion working at first example pattern?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Komodo 有一个 宏 API,可以自动在两种模式之间切换。使用添加宏上下文菜单选项创建新宏并粘贴以下代码:
单击工具箱中的宏可在智能感知模式和视觉模式之间切换。
作为替代方案,JSDoc 注释也可能有效。
Komodo has a macro API which can automate switching between the two patterns. Use the Add macro context menu option to create a new macro and paste the following code:
Click the macro in the toolbox to toggle between intellisense mode and visual mode.
As an alternative, a JSDoc comment may work as well.