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

Autocomplete Javascript with Method Signature

by eladyarkoni ALL

Very lightweight plugin for sublime text editor

Details

  • 2014.06.10.11.05.22
  • github.​com
  • github.​com
  • 6 years ago
  • 1 hour ago
  • 8 years ago

Installs

  • Total 78K
  • Win 50K
  • Mac 15K
  • Linux 13K
Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21
Windows 13 11 11 9 11 16 18 19 14 10 20 12 19 9 20 17 12 15 9 19 18 10 23 13 13 24 17 11 27 14 20 16 13 18 17 15 16 10 19 10 12 15 15 13 24 10
Mac 0 2 0 2 0 0 1 1 7 0 1 1 1 4 0 5 1 1 0 1 2 1 3 1 0 0 2 1 1 2 2 1 2 1 2 2 1 4 0 1 1 2 2 1 1 0
Linux 1 1 3 3 2 8 0 2 3 2 4 1 3 0 3 1 4 3 1 5 2 1 2 1 2 2 2 0 1 4 2 5 3 2 1 2 5 4 0 5 4 1 1 1 3 3

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>