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
  • 3 hours ago
  • 7 years ago

Installs

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

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>