Code intelligence plugin ported from Open Komodo Editor to Sublime Text.
Supports all the languages Komodo Editor supports for Code Intelligence (CIX, CodeIntel2):
JavaScript, Mason, XBL, XUL, RHTML, SCSS, Python, HTML, Ruby, Python3, XML, Sass, XSLT, Django, HTML5, Perl, CSS, Twig, Less, Smarty, Node.js, Tcl, TemplateToolkit, PHP.
Provides the following features:
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 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 in different platforms. To access the directory use:
OS X:
Sublime Text -> Preferences -> Browse Packages...
Linux:
Preferences -> Browse Packages...
Windows:
Preferences -> Browse Packages...
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.
Control+Click
Control+Command+Alt+Up
Control+Command+Alt+Left
Control+Shift+space
Super+Click
Control+Super+Alt+Up
Control+Super+Alt+Left
Control+Shift+space
Alt+Click
Control+Windows+Alt+Up
Control+Windows+Alt+Left
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!
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 project, or create an optional codeintel configuration file in your home or in your project's root.
Configuration files (~/.codeintel/config
or project_root/.codeintel/config
). All configurations are optional. Example:
{ "PHP": { "php": '/usr/bin/php', "phpExtraPaths": [], "phpConfigFile": 'php.ini' }, "JavaScript": { "javascriptExtraPaths": [] }, "Perl": { "perl": "/usr/bin/perl", "perlExtraPaths": [] }, "Ruby": { "ruby": "/usr/bin/ruby", "rubyExtraPaths": [] }, "Python": { "python": '/usr/bin/python', "pythonExtraPaths": [] }, "Python3": { "python": '/usr/bin/python3', "pythonExtraPaths": [] } }
Additional 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:
"codeintel_disabled_languages": ['css']
"codeintel_live_disabled_languages": ['css']
SublimeCodeIntel.sublime-settings
file in the package.If you are having problems or SublimeCodeIntel seems slow/unresponsive/non-working, there are some things you should try:
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):
Preferences/Settings - Default
menu itemignored_packages
setting and remove SublimeCodeIntel from the list.To force re-indexation of the code intelligence database you need to follow these steps:
~/.codeintel
that contains codeintel.log
, VERSION
and the directory db
. In Windows, this should be at %userprofile%\.codeintel
.~/.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
.If the problems persists 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.
Building process is no longer distributed with this repository. You need to get SublimeCodeIntel/CodeIntelSources to run build.sh
.
More information in SublimeCodeIntel/CodeIntelSources/src.
For the next major version of SublimeCodeIntel (v3.0.0) you will have to ensure
that CodeIntel package (https://pypi.python.org/pypi/CodeIntel) is installed on
your system usually by using pip or easy_install. The Code intelligence will be
handled by that package and the command codeintel
it will install.
Please start trying to install the CodeIntel package as soon as possible to make sure you are ready for the upcoming version of SublimeCodeIntel:
CodeIntel
by typing the following in a terminal: pip install -U codeintel
v3.0.0 (unreleased, alpha):
v2.2.0 (2015-03-26):
v2.1.9 (2015-03-21):
v2.1.8 (2015-03-18):
v2.1.7 (2015-01-26):
v2.1.6 (2015-01-23):
v2.1.5 (2015-01-22):
v2.1.4 (2015-01-21):
v2.1.3 (2015-01-20):
v2.1.2 (2015-01-16):
v2.1.1 (2015-01-14):
v2.1.0 (2015-01-13):
v2.0.6 (2013-09-21):
v2.0.5 (18-09-2013):
v2.0.4 (16-09-2013):
v2.0.3 (14-09-2013):
v2.0.2 (12-09-2013):
v2.0.1 (19-07-2013):
v2.0 (11-07-2013):
sublime_auto_complete
setting)v1.4 (05-07-2013):
v1.3 (20-12-2011):
calltip()
is now thread safe (which caused some strange behavior in Linux
where Sublime Text 2 ended up being unresponsive).v1.2 (18-12-2011):
codeintel_live_disabled_languages
and fixed codeintel_live
to disable SublimeCodeIntel live autocomplete mode.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).
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。