1、下载sublime text 3 https://www.sublimetext.com/3
2、ctrl+shift+p
3、输入:Package Control
ctrl+shift+p
install package
1、Anaconda
1.1、Sublime > Preferences > Package Settings > Anaconda > Settings User 中设置关闭:{“anaconda_linting”: false}
2、Python PEP8 Autoformat
2.1、Settings-Default “autoformat_on_save”: true, 说明:设置后,需要关闭sublime 再打开才生效。
3、settings 设置tab 键4个空格
"translate_tabs_to_spaces": false,
4、python 虚拟环境设置
4.1、Tools–>Build System–>New >Build System
{
"cmd": ["C:\\Curtis\\Python\\data\\Scripts\\python.exe","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "cp936",
}
说明:C:\\Curtis\\Python\\data\\Scripts\\python.exe 虚拟环境python.exe 路径
4.2、保存文件 Python-env.sublime-build
4.3、Tools–>Build System–>Python-env
热门评论
Settings
"translate_tabs_to_spaces": true