Home > Development Tools > sublime > SublimeText3 autocomplete python prompts

SublimeText3 autocomplete python prompts

藏色散人
Release: 2019-11-29 11:29:00
forward
9757 people have browsed it

下面由sublime入门教程栏目给大家介绍SublimeText3自动补全python提示的方法,希望对需要的朋友有所帮助!

SublimeText3 autocomplete python prompts

1、Sublime Text3下载地址

https://www.sublimetext.com/3
Copy after login

2、安装SublimeText3

3、安装SublimeCodeIntel

(1)打开SublimeText3;(2)按快捷键“ctrl+p”,或者“Preferences->Package control”输入“Package Control: InstallPackage”;(3)输入“SublimeCodeIntel”,点击列表中的“SublimeCodeIntel”包,安装完后会有相应的提示。

4、配置python提示

(1)找配置文件

Preferences->Package settings->SublimeCodeIntel->settings-user

(2)修改文件内容如下,其中python的路径需要根据自己的需要修改

{
    "codeintel_language_settings": {
        "Python": {
            "python": "D:\\python\\python.exe",
            "codeintel_scan_extra_dir": [
                "D:\\python",
                "D:\\python\\DLLs",
                "D:\\python\\Lib",
                "D:\\python\\Lib\\site-packages",
                "D:\\python\\Lib\\idlelib"             
            ],
            "codeintel_scan_files_in_project": true,
            "codeintel_selected_catalogs": []
        },
    }
}
Copy after login

5、快捷键

(1)一般情况下,默认快捷键有:

ctrl+/:代码注释

ctrl+shift+space:代码提示

(2)自定应快捷键:

自定义“鼠标”跳转注释代码

找配置文件

Preferences->Package settings->SublimeCodeIntel->Mouse Bindings-User
Copy after login

添加以下内容

[{ "button": "button1", "modifiers": ["ctrl"], "command": "goto_python_definition", "press_command": "drag_select" }
]
Copy after login
自定义“键盘”快捷方式
Preferences->Package settings->SublimeCodeIntel->Key Bindings-User
Copy after login

定义方式类似于鼠标的格式。

上述自定义方法可以参见

Preferences->Package settings->SublimeCodeIntel->Key Bindings-Default中的内容
Copy after login


The above is the detailed content of SublimeText3 autocomplete python prompts. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template