sublime text2 配置tab为4个空格

2015/04/24 21:46
阅读数 88

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

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部