SublimeText3自動補全python提示
1、SublimeText3下載地址
https://www.sublimetext.com/3
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": []
},
}
}
5、快捷鍵
(1)一般情況下,預設快捷鍵有:
ctrl+/:程式碼註釋
ctrl+shift+space:程式碼提示
(2)自定應快捷鍵:
自定義“滑鼠”跳轉註釋程式碼
找配置檔案
Preferences->Package settings->SublimeCodeIntel->Mouse Bindings-User
新增以下內容
[{ "button": "button1", "modifiers": ["ctrl"], "command": "goto_python_definition", "press_command": "drag_select" }
]
自定義“鍵盤”快捷方式
Preferences->Package settings->SublimeCodeIntel->Key Bindings-User
定義方式類似於滑鼠的格式。
上述自定義方法可以參見Preferences->Package settings->SublimeCodeIntel->Key Bindings-Default中的內容