Komodo Edit - how to add code completion to a my files

4.3k views Asked by At

I am new to Komodo Edit. How can I add IntelliSense to my own files?

For example: myFirst.js that includes auto completion for objects or functions that were defined in mySecond.js?

Also, how can I add auto completion to my CSS file from my HTML file?

Another example: in Visual Studio I put this statement at the beginning of file2.js:

 /// <reference path="../js/file1.js" />

And then I had IntelliSense for file1.js inside file2.js.

2

There are 2 answers

1
TOP KEK On BEST ANSWER

Open menu EditPreferencesLanguagesJavaScript and specify directory with your source files.

Komodo will scan them for information about your functions.

1
Naatan On

As long as both files are under the same project, Komodo should automatically pick up on them and provide code intelligence. But make sure you are using a project and not just editing your files plainly as Komodo will not know how to associate your files.

Note though that if you are abstracting your JavaScript code too much that code intelligence will not be able to keep track of what you are trying to do. But you'd have to include some samples of your code for us to be able to comment further on that.

Also note this open bug, which may be related to your issue: http://bugs.activestate.com/show_bug.cgi?id=101646