Use Anaconda from Sublime Package.
/ path / to / venv / bin / python
/ path / to / project /
/ path / to / project / apps
Teach Anaconda the path of virtualenv and the additional path from Sublime Project.
example.sublime-project
{
"folders":
[
{
"follow_symlinks": true,
"path": "."
}
]
"settings":
{
"extra_paths":
[
"/path/to/project/apps"
],
"python_interpreter": "/path/to/venv/bin/python"
}
}
I personally find it difficult to hit the default key
Default.sublime-keymap(User)
[
{"command":"anaconda_goto","keys":["super+1"]}
]
It may be good to do it. All you have to do is hit the specified key where you want to see the definition.
My Anaconda settings
Anaconda.sublime-settings(User)
{
"auto_complete_triggers": [
{"selector": "source.py - string - comment - constant.numeric", "characters": "."}
],
"pep8_max_line_length": 100,
"python_interpreter": "/usr/local/bin/python",
"anaconda_linter_mark_style": "none"
}
Anaconda also checks pep8, but by default the highlights are too intense and it's annoying to set 80 characters per line, so set it appropriately.
Recommended Posts