Sublime text3修改tab键为缩进为四个空格

时间:2023-03-08 23:55:54
Sublime text3修改tab键为缩进为四个空格

1.打开设置界面

Sublime text3修改tab键为缩进为四个空格

2.设置属性

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

如图:

Sublime text3修改tab键为缩进为四个空格

注释:

// The number of spaces a tab is considered equal to
"tab_size": ,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
//设置保存时自动转换
"expand_tabs_on_save": true