Autocomplete for Python Coding in Sublime Text (ST3)
Wanted to be able to do AUTOCOMPLETE when editing my python codes
####Procedure
I search the Internet for resource and sublimed on this which gave me recommendation on what to get
So I looked for SublimeJEDI here.
Following the instruction, I installed the package in my ST3.
Now to the configuration part. To configure ST3 for SublimeJEDI integration, I went to Preference (MAC) -> Package Settings -> Jedi -> Settings -Default
Add your Virtual Environment and also the path any additional Python package
{
// You can set a path to your python virtualenv,
// for example/home/user/.virtualenvs/myenv).
// Note: Interpreter path would be found automaticaly
"python_virtualenv": "/Users/macbookpro/environments",// You can set a path to your python interpreter, // for example `/home/user/.virtualenvs/myenv/bin/python)`. "python_interpreter": "/Users/macbookpro/environments/bin/python3", // Additional python package paths. "python_package_paths": ["/Users/macbookpro/Documents/projects/autotask-python/autotask-Env/"],}
Add how you would want Jedi to handle the autocompletting task. My example below makes sure that Jedi provides autocomplete suggestions after a DOT and not during typing.
// When to modifiy
"only_complete_after_regex": "\.",
The final step is to add the settings to User.Preference Settings. Preferences.sublime-settings - User
{
// ........// Added my settings here // Modify Python on DOT //# User/Preferences.sublime-settings or User/Python.sublime-settings "auto_complete_triggers": [ { "selector": "source.python", "characters": "." }], // Auto-completion ONLY on dot and not while typing, // you can set (additionally to the trigger above): "auto_complete_selector": "-", // Jedi auto-completion only after the . character // but don't want to affect auto-completion from other packages "only_complete_after_regex": "\\.",}
Leave Autocomplete for Python Coding in Sublime Text (ST3) to:
Read more #sublime posts
Best Posts From mafisicoder
We have not curated any of mafisicoder's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From mafisicoder
- Autocomplete for Python Coding in Sublime Text (ST3)
- Trying to Upload a video on Steemit- EASY
- Do you know: WHO KILLED SAMSON IN THE BIBLE?
- Video from the Open Data Day Event in Lagos
- Extending Bootstrap default look in a Rails project
- Open Data Meetup at Lagos
- I stumbled on a post that has Emoji from Steemit
- How we use git in our codebase on Github
- I do not know how to use STEEMAUTO
- How to use Subdomains to combine a Wordpress site and Rails app