sublime text 3 Python代码补全

重点问题
使用sublime text3编写python代码时,一些类声明函数调用都需要自己去敲写。很影响工作效率。敲写代码时加代码提示。

具体方法
点击Ctrl+Shift+P弹出
sublime text 3 Python代码补全_第1张图片
选择Install Package等待一会儿弹出下图小框,输入SublimeCodeintal点击安装即可,我这个是已经安装过,所以不会提示。
sublime text 3 Python代码补全_第2张图片
等待安装完成后,选择 Perference-Package Settings-SublimeCodeIntel-Settings-User,复制以下配置:

{
“codeintel_language_settings”: {
“Python3”: {
“python3”: “C:\Users\xmm\AppData\Local\Programs\Python\Python36\python.exe”,
“codeintel_scan_extra_dir”: [
“C:\Users\xmm\AppData\Local\Programs\Python\Python36\DLLs”,
“C:\Users\xmm\AppData\Local\Programs\Python\Python36\Lib”,
“C:\Users\xmm\AppData\Local\Programs\Python\Python36\Lib\site-packages”,
“C:\Users\xmm\AppData\Local\Programs\Python\Python36\Lib\idlelib”,
“C:\Users\xmm\AppData\Local\Programs\Python\Python36\python36.zip”,
“C:\Users\xmm\AppData\Local\Programs\Python\Python36”,
“C:\Users\xmm\AppData\Local\Programs\Python\Python36\Lib\*”,
],
“codeintel_scan_files_in_project”: true,
“codeintel_selected_catalogs”: []
},
}
}
保存退出即可。

你可能感兴趣的:(sublime text 3 Python代码补全)