1.打开设置界面

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

Sublime text3修改tab键为缩进为四个空格 随笔 第1张

2.设置属性

    "tab_size": 4,
    "translate_tabs_to_spaces": true,
    "expand_tabs_on_save": true

如图:

Sublime text3修改tab键为缩进为四个空格 随笔 第2张

 

注释:

// 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,
//设置保存时自动转换
"expand_tabs_on_save": true

 



扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄