How to configure subulime text3 python code completion?

problem description

the contents of the test1.py file are as follows:

from test1 import A

A.tes...(test1)

desired help

I don"t know if our great sublime has a useful code hint that the completion plug-in can be used. I don"t seem to be able to implement this function when I try codeintel. I don"t know if it"s my configuration problem. This function can be realized smoothly in pycharm environment without configuration.

can you give me a more detailed configuration method to use sublime, for the first time?


Sublime Text version 3.2.1, SublimeCodeIntel under Build 3207 meets the above requirements.

No additional configuration is required after installing the plug-in. Perference | Package Settings | SublimeCodeIntel | Settings-User check whether you correctly point to the Python installation path, for example:

{
    "python":{
        "python":"E:\\Python\\Python37\\python.exe",
        "pythonExtraPaths":[
            "E:\\Python\\Python37",
            "E:\\Python\\Python37\\DLLs",
            "E:\\Python\\Python37\\Lib",
            "E:\\Python\\Python37\\Lib\\site-packages",

        ]
    }
}

for the question scenario, SublimeCodeIntel has two smart tips:

  • enter from test1 import and a prompt for importing variables appears in the space. You can select A directly from the list of prompts.
  • member function prompts appear after entering A. , including custom test1 and default magic method

there may be delays without prompting directly. Try saving the current file

at this time.
Menu