Sublime text3修改tab键缩进

1.菜单栏中点击Preferences(首选项)->Setting-User

2. 添加如下三行代码:

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

3. 如下图,保存退出即可:

posted @ 2017-08-15 14:32  小小小学徒呀  阅读(2710)  评论(0)    收藏  举报