Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way in Sublime Text 2 to support JavaScript completion of objects/functions defined in other files?

Tags:

sublimetext

If I am editing a .js file in Sublime Text 2 that makes use of a library defined in a separate .js file, is there a way to support tab completion of objects/functions defined in the external library file?

Something analogous to the following from Visual Studio:

/// <reference path="/js/some-library.min.js" />

which enables IntelliSense over the library/plugin code.

like image 856
Riko Avatar asked Feb 24 '12 15:02

Riko


1 Answers

I haven't tried it myself yet, but there's SublimeCodeIntel: https://github.com/Kronuz/SublimeCodeIntel#readme

The OP in this thread: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=5319 seems to be complaining that it's pulling suggestions from outside the current file, which may mean it's doing what you want.

like image 140
Curtis Avatar answered Oct 15 '22 03:10

Curtis