sublime text 3 Pyth
重点问题
使用sublime text3编写python代码时,一些类声明函数调用都需要自己去敲写。很影响工作效率。敲写代码时加代码提示。
具体方法
点击Ctrl+Shift+P弹出
选择Install Package等待一会儿弹出下图小框,输入SublimeCodeintal点击安装即可,我这个是已经安装过,所以不会提示。
等待安装完成后,选择 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”: []
},
}
}
保存退出即可。
相关文章