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

Auto​Complete​JS

by titoBouzout ST3 Removed

method/function/var autocomplete functionality for JavaScript /JS

Details

  • 2016.03.18.06.35.29
  • github.​com
  • github.​com
  • 2 years ago
  • 2 years ago
  • 3 years ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

AutoCompleteJS

JavaScript autocomplete functionality for Sublime Text with method/function signature (arguments) and var completion.

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(...) for opened folders. It does not evaluate objects(!).

Files are parsed only the first time these are seen and then will only re-parse 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.)

This package is based in an idea from http://www.eladyarkoni.com/2012/09/sublime-text-auto-complete-plugin.html with performance improvements from https://github.com/eladyarkoni/MySignaturePlugin/pull/7 and packed here for better openness

Installation

Download or clone the contents of this repository to a folder named exactly as the package name into the Packages/ folder of ST.