python - Sublime Text Python 自动完成

标签 python autocomplete package sublimetext3

我安装了 SublimePythonIDE 包。错误突出显示工作正常,但自动补全不起作用。这是我的配置:

{
    // leave empty string to use default system interpreter
    // e.g. /usr/local/bin/python
    // or "C:\\Python27\\python.exe"
    // if you use virtualenvs, then set the absolute path to the virtualenv's
    // python in your project settings (Project->Edit Project) as in:
    //
    // {
    //     "folders": ...
    //     "settings":
    //     {
    //         "python_interpreter": "/Users/USER/.virtualenvs/PROJECT/bin/python"
    //     }
    // }
    "python_interpreter": "D:/Python27/",

    // make python_open_documentation command output in a view or in the output
    // panel if false
    "open_pydoc_in_view": false,

    // when a doc view is created it will be placed in the active view group
    // if false and only one group exist then a new group will be created
    "create_view_in_same_group": false,

    // Linter settings
    "python_linting": true,
    "python_linter_mark_style": "outline", // "none" or "outline"
    "python_linter_gutter_marks": true,
    "python_linter_gutter_marks_theme": "simple", // see folder gutter_mark_themes
    "pep8": true,
    "pep8_ignore": [],
    "pep8_max_line_length": 80,
    "pyflakes_ignore": []
}

我做错了什么?

最佳答案

如果您查看第 3 行和第 4 行的示例,您会发现需要提供 Python 可执行文件的完整路径。因此,将您的行更改为:

"python_interpreter": "D:\\Python27\\python.exe",

你应该已经准备好了。

关于python - Sublime Text Python 自动完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21204821/

相关文章:

python - Python 有没有像 D3 一样的 Scale 函数?

python - jinja2蓝图路线错误

php - 将表单值设置为自动完成查找结果的子字符串

exception - 找到数据时PL SQL引发异常

python - 在 Python 中调用函数时是否总是必须引用包?

Python 覆盖率报告仅覆盖测试文件

python - 检查字符串是否在字符串中

intellij-idea - Intellij 自动完成(函数名称)直到名称出现分歧并且未完成列表中的第一个建议

emacs - "Intellisense"在 clojure 的 emacs 中(内联文档和提醒下拉菜单)?

r - 在自己的包中自动设置选项