根据网上的博客,总结在sublime text下开发python最需要的配置。
1、tab和空格的配置
Preference->Setting-User:
{
"draw_white_space": "all",
// The number of spaces a tab is considered equal to
"tab_size": 4,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": false,
//若要在保存时自动把tab 转换成空格,请把下面一行设置成 true,如不需要: 设置成 false
"expand_tabs_on_save": false,
"font_size": 11.0,
"ignored_packages":
[
"Vintage"
]
}
2、安装Python PEP8 Autoformat
Package Control->Install Package->Python PEP8 Autoformat
说明:PEP8是python的代码规范,写完代码后格式化代码
3、安装Anaconda
该插件可以进行语法定义跳转,语法补全,语法pep8自动检查和改正。
官网:http://damnwidget.github.io/anaconda/
参考:
http://blog.csdn.net/aerchi/article/details/50395288