前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SublimeText3自动补全python

SublimeText3自动补全python

作者头像
py3study
发布2020-01-08 18:08:01
2K0
发布2020-01-08 18:08:01
举报
文章被收录于专栏:python3python3

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中的内容

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-09-04 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档