Preferences -> settings -> defalut 拷贝以下内容至user settings文件,并修改如下:
【将Tab键自动替换为4个空格】
// 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”: true,
另外,把现有Python文件中的Tab符全部替换成4个空格,按如下操作:
View -> Identation -> Convert Identation to Spaces