Komodo Edit autocompletion JS object literal
问题 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? 回答1: 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: komodo