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

Sublime​Code​Intel

by Kronuz ALL Top 25

Full-featured code intelligence and smart autocomplete engine

Details

Installs

  • Total 1.85M
  • Win 1.14M
  • Mac 416K
  • Linux 289K
Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26
Windows 5 26 17 14 20 21 22 22 26 16 16 37 31 30 29 21 19 25 28 32 37 39 28 20 21 29 33 23 23 21 10 21 19 32 15 16 30 14 26 17 22 26 31 28 18 21
Mac 3 1 3 6 7 8 10 8 4 4 6 7 10 6 14 7 3 7 8 7 12 9 6 3 7 7 10 9 9 16 2 3 9 7 12 11 3 2 4 4 9 7 8 8 8 3
Linux 2 4 7 5 5 5 3 4 8 4 9 6 4 4 6 5 2 4 5 5 6 3 4 5 7 11 4 3 7 7 5 5 3 4 7 4 3 7 4 6 2 7 4 2 3 6
02040Jun 10Jun 7Jun 4Jun 1May 29May 26May 23May 20May 17May 14May 11May 8May 5May 2Apr 29Apr 26Jun 10 Linux: 2 Mac: 3 Windows: 5Jun 9 Linux: 4 Mac: 1 Windows: 26Jun 8 Linux: 7 Mac: 3 Windows: 17Jun 7 Linux: 5 Mac: 6 Windows: 14Jun 6 Linux: 5 Mac: 7 Windows: 20Jun 5 Linux: 5 Mac: 8 Windows: 21Jun 4 Linux: 3 Mac: 10 Windows: 22Jun 3 Linux: 4 Mac: 8 Windows: 22Jun 2 Linux: 8 Mac: 4 Windows: 26Jun 1 Linux: 4 Mac: 4 Windows: 16May 31 Linux: 9 Mac: 6 Windows: 16May 30 Linux: 6 Mac: 7 Windows: 37May 29 Linux: 4 Mac: 10 Windows: 31May 28 Linux: 4 Mac: 6 Windows: 30May 27 Linux: 6 Mac: 14 Windows: 29May 26 Linux: 5 Mac: 7 Windows: 21May 25 Linux: 2 Mac: 3 Windows: 19May 24 Linux: 4 Mac: 7 Windows: 25May 23 Linux: 5 Mac: 8 Windows: 28May 22 Linux: 5 Mac: 7 Windows: 32May 21 Linux: 6 Mac: 12 Windows: 37May 20 Linux: 3 Mac: 9 Windows: 39May 19 Linux: 4 Mac: 6 Windows: 28May 18 Linux: 5 Mac: 3 Windows: 20May 17 Linux: 7 Mac: 7 Windows: 21May 16 Linux: 11 Mac: 7 Windows: 29May 15 Linux: 4 Mac: 10 Windows: 33May 14 Linux: 3 Mac: 9 Windows: 23May 13 Linux: 7 Mac: 9 Windows: 23May 12 Linux: 7 Mac: 16 Windows: 21May 11 Linux: 5 Mac: 2 Windows: 10May 10 Linux: 5 Mac: 3 Windows: 21May 9 Linux: 3 Mac: 9 Windows: 19May 8 Linux: 4 Mac: 7 Windows: 32May 7 Linux: 7 Mac: 12 Windows: 15May 6 Linux: 4 Mac: 11 Windows: 16May 5 Linux: 3 Mac: 3 Windows: 30May 4 Linux: 7 Mac: 2 Windows: 14May 3 Linux: 4 Mac: 4 Windows: 26May 2 Linux: 6 Mac: 4 Windows: 17May 1 Linux: 2 Mac: 9 Windows: 22Apr 30 Linux: 7 Mac: 7 Windows: 26Apr 29 Linux: 4 Mac: 8 Windows: 31Apr 28 Linux: 2 Mac: 8 Windows: 28Apr 27 Linux: 3 Mac: 8 Windows: 18Apr 26 Linux: 6 Mac: 3 Windows: 21Jun 10 Linux: 2 Mac: 3 Windows: 5Jun 9 Linux: 4 Mac: 1 Windows: 26Jun 8 Linux: 7 Mac: 3 Windows: 17Jun 7 Linux: 5 Mac: 6 Windows: 14Jun 6 Linux: 5 Mac: 7 Windows: 20Jun 5 Linux: 5 Mac: 8 Windows: 21Jun 4 Linux: 3 Mac: 10 Windows: 22Jun 3 Linux: 4 Mac: 8 Windows: 22Jun 2 Linux: 8 Mac: 4 Windows: 26Jun 1 Linux: 4 Mac: 4 Windows: 16May 31 Linux: 9 Mac: 6 Windows: 16May 30 Linux: 6 Mac: 7 Windows: 37May 29 Linux: 4 Mac: 10 Windows: 31May 28 Linux: 4 Mac: 6 Windows: 30May 27 Linux: 6 Mac: 14 Windows: 29May 26 Linux: 5 Mac: 7 Windows: 21May 25 Linux: 2 Mac: 3 Windows: 19May 24 Linux: 4 Mac: 7 Windows: 25May 23 Linux: 5 Mac: 8 Windows: 28May 22 Linux: 5 Mac: 7 Windows: 32May 21 Linux: 6 Mac: 12 Windows: 37May 20 Linux: 3 Mac: 9 Windows: 39May 19 Linux: 4 Mac: 6 Windows: 28May 18 Linux: 5 Mac: 3 Windows: 20May 17 Linux: 7 Mac: 7 Windows: 21May 16 Linux: 11 Mac: 7 Windows: 29May 15 Linux: 4 Mac: 10 Windows: 33May 14 Linux: 3 Mac: 9 Windows: 23May 13 Linux: 7 Mac: 9 Windows: 23May 12 Linux: 7 Mac: 16 Windows: 21May 11 Linux: 5 Mac: 2 Windows: 10May 10 Linux: 5 Mac: 3 Windows: 21May 9 Linux: 3 Mac: 9 Windows: 19May 8 Linux: 4 Mac: 7 Windows: 32May 7 Linux: 7 Mac: 12 Windows: 15May 6 Linux: 4 Mac: 11 Windows: 16May 5 Linux: 3 Mac: 3 Windows: 30May 4 Linux: 7 Mac: 2 Windows: 14May 3 Linux: 4 Mac: 4 Windows: 26May 2 Linux: 6 Mac: 4 Windows: 17May 1 Linux: 2 Mac: 9 Windows: 22Apr 30 Linux: 7 Mac: 7 Windows: 26Apr 29 Linux: 4 Mac: 8 Windows: 31Apr 28 Linux: 2 Mac: 8 Windows: 28Apr 27 Linux: 3 Mac: 8 Windows: 18Apr 26 Linux: 6 Mac: 3 Windows: 21Jun 10 Linux: 2 Mac: 3 Windows: 5Jun 9 Linux: 4 Mac: 1 Windows: 26Jun 8 Linux: 7 Mac: 3 Windows: 17Jun 7 Linux: 5 Mac: 6 Windows: 14Jun 6 Linux: 5 Mac: 7 Windows: 20Jun 5 Linux: 5 Mac: 8 Windows: 21Jun 4 Linux: 3 Mac: 10 Windows: 22Jun 3 Linux: 4 Mac: 8 Windows: 22Jun 2 Linux: 8 Mac: 4 Windows: 26Jun 1 Linux: 4 Mac: 4 Windows: 16May 31 Linux: 9 Mac: 6 Windows: 16May 30 Linux: 6 Mac: 7 Windows: 37May 29 Linux: 4 Mac: 10 Windows: 31May 28 Linux: 4 Mac: 6 Windows: 30May 27 Linux: 6 Mac: 14 Windows: 29May 26 Linux: 5 Mac: 7 Windows: 21May 25 Linux: 2 Mac: 3 Windows: 19May 24 Linux: 4 Mac: 7 Windows: 25May 23 Linux: 5 Mac: 8 Windows: 28May 22 Linux: 5 Mac: 7 Windows: 32May 21 Linux: 6 Mac: 12 Windows: 37May 20 Linux: 3 Mac: 9 Windows: 39May 19 Linux: 4 Mac: 6 Windows: 28May 18 Linux: 5 Mac: 3 Windows: 20May 17 Linux: 7 Mac: 7 Windows: 21May 16 Linux: 11 Mac: 7 Windows: 29May 15 Linux: 4 Mac: 10 Windows: 33May 14 Linux: 3 Mac: 9 Windows: 23May 13 Linux: 7 Mac: 9 Windows: 23May 12 Linux: 7 Mac: 16 Windows: 21May 11 Linux: 5 Mac: 2 Windows: 10May 10 Linux: 5 Mac: 3 Windows: 21May 9 Linux: 3 Mac: 9 Windows: 19May 8 Linux: 4 Mac: 7 Windows: 32May 7 Linux: 7 Mac: 12 Windows: 15May 6 Linux: 4 Mac: 11 Windows: 16May 5 Linux: 3 Mac: 3 Windows: 30May 4 Linux: 7 Mac: 2 Windows: 14May 3 Linux: 4 Mac: 4 Windows: 26May 2 Linux: 6 Mac: 4 Windows: 17May 1 Linux: 2 Mac: 9 Windows: 22Apr 30 Linux: 7 Mac: 7 Windows: 26Apr 29 Linux: 4 Mac: 8 Windows: 31Apr 28 Linux: 2 Mac: 8 Windows: 28Apr 27 Linux: 3 Mac: 8 Windows: 18Apr 26 Linux: 6 Mac: 3 Windows: 21

Readme

Source
raw.​githubusercontent.​com

SublimeCodeIntel

This Code Intelligence plugin for Sublime Text provides an interface to CodeIntel. CodeIntel is a code intelligence engine that was ported from Open Komodo Editor to a stand-alone Python package.

CodeIntel supports all the languages Komodo Editor supports for Code Intelligence (CIX, CodeIntel2) and a few others:

ActionScript, Django, Docker, EJS, epMojo, HTML, KomodoSnippet, LaravelBlade, Mason, Mustache, MXML, PHP, R, reStructuredText, RHTML, Smarty, TracWiki, TemplateToolkit, Twig, XBL, XML, XSLT, XUL, Python, Python3, Ruby, Perl, Go, ECMAScript, JavaScript, Node.js, CSS, SCSS, Sass, Less, HTML5, Tcl, C/C++, Objective-C.

The plugin provides the following features:

  • Jump to Symbol Definition - Jump to the file and line of the definition of a symbol.
  • Imports autocomplete - Shows autocomplete with the available modules/symbols in real-time.
  • Function Call tooltips - Displays information in the status bar about the working function.

The package should work on all three platforms (MacOS X, Windows, and Linux).

Click here to lend your support to CodeIntel/SublimeCodeIntel and make a donation!

CodeIntel Installation

Before installing SublimeCodeIntel, you must ensure that CodeIntel is installed on your system. To install CodeIntel, do the following:

  1. Install Python and pip (Python 3 requires pip3).

  2. Install CodeIntel by typing the following in a terminal:

# For Python 2
   [sudo] pip install --upgrade --pre CodeIntel

   # For Python 3
   [sudo] pip3 install --upgrade --pre CodeIntel

Note: SublimeCodeIntel requires CodeIntel 2.0 or later.

Plugin Installation

With the Package Control plugin: The easiest way to install SublimeCodeIntel is through Package Control, which can be found at this site: http://wbond.net/sublime_packages/package_control

Once you install Package Control, restart Sublime Text and bring up the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows). Select “Package Control: Install Package”, wait while Package Control fetches the latest package list, then select SublimeCodeIntel when the list appears. The advantage of using this method is that Package Control will automatically keep SublimeCodeIntel up to date with the latest version.

**Without Git:** Download the latest source from GitHub and copy the whole directory into the Packages directory.

**With Git:** Clone the repository in your Sublime Text Packages directory, located somewhere in user's “Home” directory:

git clone git://github.com/SublimeCodeIntel/SublimeCodeIntel.git

The “Packages” packages directory is located differently on different platforms. To access the directory use:

  • OS X:

    Sublime Text -> Preferences -> Browse Packages...
    
  • Linux:

    Preferences -> Browse Packages...
    
  • Windows:

    Preferences -> Browse Packages...
    

Using

  • Start typing code, as usual, autocomplete will pop up whenever it's available. SublimeCodeIntel will also allow you to jump around symbol definitions even across files with just a click ..and back.

    For Mac OS X:

    • Jump to definition = Control+Click
    • Jump to definition = Control+Command+Alt+Up
    • Go back = Control+Command+Alt+Left
    • Manual Code Intelligence = Control+Shift+space

    For Linux: - Jump to definition = Super+Click - Jump to definition = Control+Super+Alt+Up - Go back = Control+Super+Alt+Left - Manual Code Intelligence = Control+Shift+space

    For Windows: - Jump to definition = Alt+Click - Jump to definition = Control+Windows+Alt+Up - Go back = Control+Windows+Alt+Left - Manual Code Intelligence = Control+Shift+space

Don't despair! The first time you use it it needs to build some indexes and it can take more than a few seconds.

It just works!

Configuring

For adding additional library paths (Django and extra libs paths for Python or extra paths to look for .js files for JavaScript for example), either add those paths as folders to your Sublime Text project or modify SublimeCodeIntel User settings. User settings can be configured in the User File Settings:

Do NOT edit the default SublimeCodeIntel settings. Your changes will be lost when SublimeCodeIntel is updated. ALWAYS edit the user SublimeCodeIntel settings by selecting “Preferences->Package Settings->SublimeCodeIntel->Settings - User”. Note that individual settings you include in your user settings will completely replace the corresponding default setting, so you must provide that setting in its entirety.

Available settings:

  • A list of disabled languages can be set using “disabled_languages”. Ex. "disabled_languages": ['css']
  • Live autocomplete can be disabled by setting “live” to false.
  • Information for more settings is available in the SublimeCodeIntel.sublime-settings file in the package.

Troubleshooting

If you are having problems or SublimeCodeIntel seems slow/unresponsive/non-working, there are some things you should try:

  1. Make sure the SublimeCodeIntel is not being treated as an ignored package.
  2. Regenerate indexing database.
  3. Open a new issue.

Ignored package?

To make sure Sublime Text didn't add SublimeCodeIntel to the list of ignored packages (this happens some times when packages are being installed/upgraded):

  • Select the Preferences/Settings - Default menu item
  • Find the ignored_packages setting and remove SublimeCodeIntel from the list.

Regenerate index

To force re-indexation of the code intelligence database you need to follow these steps:

  • Close Sublime Text
  • Open a terminal or navigate through your directories to find the directory ~/.codeintel that contains codeintel.log, VERSION and the directory db. In Windows, this should be at %userprofile%\.codeintel.
  • Delete the whole directory ~/.codeintel and all of its content. Particularly, if you want to delete only the indexes, the code intelligence database indexes are located inside ~/.codeintel/db.
  • Start Sublime Text
  • Try doing some code intelligence with the files in your project and enjoy a clean re-indexing! (Remember that the database is being regenerated with this procedure, so you'll see it takes some time to autocomplete the first few times, you'll have to wait a bit for things to be fast again)

Opening an issue

If the problems persist after trying the above solutions, open a new issue in https://github.com/SublimeCodeIntel/SublimeCodeIntel/issues/

When opening new issues, please check no other issues exist which report the same problem and provide all the messages from the Sublime Text console (the console is accessed via the ctrl+ shortcut or the View > Show Console menu) and the ~/.codeintel/codeintel.log file (%userprofile%\.codeintel\codeintel.log in Windows) as well as mentioning the Sublime Text version, the platform you are using and the languages you are using the code intelligence on.

What's New

v3.0.0 (unreleased, beta):

  • Uses CodeIntel as an OOP command and package. Needs to install CodeIntel with pip: pip install --upgrade --pre CodeIntel

v2.2.0 (2015-03-26):

  • Fixed issue with tabs and autocomplete

License

The plugin is based on code from the Open Komodo Editor and has an MPL license.

Ported from Open Komodo by German M. Bravo (Kronuz).