SublimeJEDI is a Sublime Text 2 and Sublime Text 3 plugin to the awesome autocomplete library Jedi
cd ~/.config/sublime-text-2/Packages/
git clone https://github.com/svaiter/SublimeJEDI.git
- Open command pallet (default:
ctrl+shift+p
) - Type
package control install
and select commandPackage Control: Install Package
- Type
jedi
and select "SublimeJEDI"
Additonal info installations you can find here http://wbond.net/sublime_packages/package_control/usage
By default SublimeJEDI will use default Python interpreter from the PATH
.
Also you can set different interpreter for each Sublime Project.
To set project related Python interpreter you have to edit yours project config file.
By default project config name is <project name>.sublime-project
You can set Python interpreter, and additional python package directories, using following:
# <project name>.sublime-project
{
// ...
"settings": {
// ...
"python_interpreter_path": "/home/sr/.virtualenvs/django1.5/bin/python"
"python_package_paths": [
"/home/sr/python_packages1",
"/home/sr/python_packages2",
"/home/sr/python_packages3"
]
}
}
By default it's turned on
# sublime_jedi.sublime-settings
{
// ...
"auto_complete_on_dot": true
}
SublimeJEDI allow fill up function parameters by default. Thanks to @krya, now you can turn it off.
# sublime_jedi.sublime-settings
{
// ..
"auto_complete_function_params": true
}
Find function / variable / class definition
Shortcuts: CTRL+SHIFT+G
or CTRL + LeftMouseButton
- add Jedi "Related Names" (Find usages). Issue #19
GNU LGPL v3 full text