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

1. 菜单栏里点击 Preferences-> Setting, 如图

2. 在弹出来的Preferences.sublime-settings-User里,添加如下三行:

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

如下图所示,保存退出即可。

原文地址:https://www.cnblogs.com/feifei-cyj/p/7986600.html