简体   繁体   中英

Sublime Text 3 and Anaconda / SublimeCodeIntel Autocompletion

I just switched over from PyCharm to ST3 for Python development. I've installed Anaconda for autocompletion (and I've also tried SublimeCodeIntel). Here is the issue that I have having. If I type in the following

import numpy as np

both packages suggest 'numpy' after the 'as' and, if I am not paying attention, when I hit enter, the statement is now changed to this:

import numpy as numpy

This also happens with say

import pandas as pd

which becomes

import pandas as pandas

Is there a way to change this behavior? For now, I have to remember to hit space so that my statements remain as I type this. This behavior is annoying and I have not experienced this with any other editor (PyCharm, Spyder.)

Thanks for the help.

If you don't mind pressing Tab to auto-complete instead of Enter , set the "auto_complete_commit_on_tab" preference to true .

For those who aren't familiar with Sublime Text 3, add it to Preferences.sublime-settings :

{
    "auto_complete_commit_on_tab": true,
    // your other settings...
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM