简体   繁体   中英

Is there any way to set Anaconda autocompletion in Sublime Text without pressing the tab key?

I'm using SublimeText3 with Anaconda. I'm wondering if there is any way to pop up Anaconda auto-completion without any key. I tried to use SublimeCodeIntel and CodeComplice and was impressed with their autocompletion. But I had a hard time with configuration and its errors and now I'm trying Anaconda. It seems like it's really working well but I think I would be more happy if it automatically showed autocomplete suggestions since my little finger is twisted from birth and I'm not so good at pressing the tab key :) Could anyone tell me if it's possible or any alternative idea? Thank you!

For me it works by using:

{
    "auto_complete": true,
    "auto_complete_commit_on_tab": true,
}

in sublime user settings. Then I get autocompletion suggestions automatically without pressing anything. I then push tab to commit.

Open your user preferences ( Preferences -> Settings-User ) and add the following setting:

"auto_complete_triggers":
[
    {
        "characters": ".",
        "selector": "source, text.html"
    }
]

Now, every time you press . , a popup showing all of the possible methods/attributes will show. Also, if you have the following setting:

"auto_complete_commit_on_tab": false

you can just hit Enter to select your desired completion option instead of Tab .

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