Sublime Test3 Python 语法自动补全插件配置

发布于 / IT / 0 条评论

分两步完成-sublimeCodeIntel安装/配置

获取安装插件

在sublime test3 内,按Ctrl+Shift+p 呼出Command;
在其中输入 install package
选择如下图,等待进入插件查找框
command
注意:下图为刚才打开的插件查找框
插件查找框
在其中输入插件名 : sublimeCodeIntel
选择即可,等待安装完成。

配置插件

选择 Perference-Package Settings-SublimeCodeIntel-Settings-User
复制,粘贴,修改路径,保存

{
"codeintel_language_settings": {
"Python3": {
"codeintel_scan_extra_dir": [
"C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36\\DLLs",
"C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36\\Lib",
"C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36\\Lib\\site-packages",
"C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36\\Lib\\idlelib",
"C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36\\python36.zip",
"C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36",
"C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python36\\Lib\\*",
],
"codeintel_scan_files_in_project": true,
"codeintel_selected_catalogs": []
},
}
}

选择 Perference-package Settings-SublimeCodeIntel-Key Bindings-User


[
{
"keys": ["f5"],
"caption": "SublimeREPL:Python",
"command":"run_existing_window_command",
"args":{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
//自动提示代码
{
"keys": ["alt+/"],
"command": "code_intel_auto_complete"
},
//跳转到函数定义
{
"keys": ["alt+right"],
"command": "goto_python_definition"
},
//返回到跳转位置
{
"keys": ["alt+left"],
"command": "back_to_python_definition"
},
]

选择 Perference-package Settings-SublimeCodeIntel-Mouse Bindings – User

[
//ctrl+鼠标左键跳转函数
{
"button": "button1",
"modifiers": ["ctrl"],
"command": "goto_python_definition",
"press_command": "drag_select"
}
]

转载原创文章请注明,转载自: 一个视界·触手可及 - 凌肖 » Sublime Test3 Python 语法自动补全插件配置
Not Comment Found