Supports all the languages Komodo Editor supports for Code Intelligence (CIX, CodeIntel2):
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.
Plugin should work in all three platforms (MacOS X, Windows and Linux).
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 ST2 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 2 Packages directory, located somewhere in user's "Home" directory:
git clone git://github.com/Kronuz/SublimeCodeIntel.git
The "Packages" packages directory is located at:
~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
~/.Sublime\ Text\ 2/Packages/
%APPDATA%/Sublime Text 2/Packages/
- Sublime CodeIntel will allow you to jump around symbol definitions even across files with just a click. To "Jump to Symbol Declaration" use
alt+clickover the symbol. To go back to previous jump point use
- Start typing code as usual, autocomplete will pop up whenever it's available. To trigger manual codeintel autocompletion use
Don't despair! The first time you use it it needs to build some indexes and it can take more than a few seconds (around six in my configuration).
It just works!
If you find the behaviour somewhat unexpected or the autocomplete incomplete, please reset the plugin from sublimetext command palette before trying anything else.
Configuration files (
project_root/.codeintel/config). All configurations are optional. Example:
Additional settings can be configured in the User File Settings:
- A list of disabled languages can be set using "codeintel_disabled_languages". Ex.
- Live autocomplete can be disabled by setting "codeintel_live" to false.
- Live autocompletion can be disabled in a per-language basis, using "codeintel_live_disabled_languages". Ex.
- Information for more settings is available in the
If everything else fails, try rebuilding the libraries using
You need to install some things to make sure it's going to work.
These are likely to be packaged on your system, such as, for Ubuntu/Debian-like
distros. Open a terminal and do:
$ sudo apt-get install g++ $ sudo apt-get install python-dev
Once you have installed those, you may need to use the
In your terminal, go to your
Packages/SublimeCodeIntel/src folder, then
- This build should fix many of the problems seen in Linux systems.
- Libraries for Linux rebuilt with libpcre statically (libpcre bundled for Linux builds).
calltip()is now thread safe (which caused some strange behavior in Linux where Sublime Text 2 ended up being unresponsive).
- CSS files support much improved (thanks to Jon's new features in autocomplete).
- Added palette commands to disable/enable the plugin in many ways.
codeintel_liveto disable SublimeCodeIntel live autocomplete mode.
- Smarter language detection and fallbacks.
- Improved autocomplete triggering, should now respond better.
- Support for new completion settings in Sublime Text 2 Build 2148.
The plugin is based in code from the Open Komodo Editor and has a MPL license.
Ported from Open Komodo by German M. Bravo (Kronuz).