一、SublimeText3下載地址
https://www.sublimetext.com/3html
二、安裝SublimeText3python
三、安裝SublimeCodeIntel
(1)打開SublimeText3;(2)按快捷鍵「ctrl+p」,或者「Preferences->Package control」輸入「Package Control: InstallPackage」;(3)輸入「SublimeCodeIntel」,點擊列表中的「SublimeCodeIntel」包,安裝完後會有相應的提示。spa
四、配置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": []
},
}
}code
五、快捷鍵
(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中的內容htm