ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Autocomplete Javascript with Method Signature

by eladyarkoni ST2/ST3

Very lightweight plugin for sublime text editor

Details

  • 2014.06.10.11.05.22
  • github.​com
  • github.​com
  • 5 years ago
  • 2 hours ago
  • 7 years ago

Installs

  • Total 72K
  • Win 45K
  • OS X 15K
  • Linux 12K
Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4
Windows 14 13 10 14 4 20 14 17 22 11 20 19 28 26 17 27 12 15 19 12 14 15 26 20 12 13 17 13 23 19 24 19 9 19 15 12 17 14 14 23 25 27 31 21 9 12
OS X 3 4 1 0 3 0 4 1 1 4 1 2 2 4 5 1 3 0 4 3 4 2 3 0 1 2 1 3 2 2 1 1 0 1 1 3 3 3 3 3 1 1 3 0 5 2
Linux 3 5 6 4 2 1 2 3 2 1 2 3 2 6 4 1 2 3 3 3 4 2 2 2 1 2 2 3 4 7 0 2 2 5 3 3 3 1 2 4 4 4 2 5 1 0

Readme

Source
raw.​githubusercontent.​com

MySignature - Sublime Text Package

Wide JavaScript autocomplete functionality for Sublime Text with method/function signature (arguments) and var completion. (You can usually make the completion box show up with Ctrl+Space in a js file.)

The package will keep an index of methods/functions seen in .js files doing a dumb parsing: it looks for name = function(...) and name: function(...). It does not evaluate objects.

Since version 2, files are parsed only the first time these are seen and then will only reparse a file if you save it (to keep the index up to date.)

As source for its index will look into:

  • All the js files of the current opened projects/folders. (this includes all the windows and scans for changes periodically in an optimized way, a file is only parsed in case of a cache miss)

  • If you open a js file that is outside the current project, it will scan the folder where this file resides.

  • Completion of methods/functions in unsaved files, and completion of vars for the current file are generated on the fly, with the incredible fast API of Sublime Text.

Will trigger its magic in js files and js scopes (eg in a script tag of an HTML file.)

For the original development read about at http://www.eladyarkoni.com/2012/09/sublime-text-auto-complete-plugin.html

For the performance improvements take a look to https://github.com/eladyarkoni/MySignaturePlugin/pull/7

Enjoy!

2012 Elad Yarkoni

2014 Tito Bouzout <tito.bouzout@gmail.com>