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

藏色散人
藏色散人转载
2020-07-13 13:32:413129浏览

下面由sublime教程栏目给大家介绍Sublime text3修改tab键为缩进为四个空格的办法,希望对需要的朋友有所帮助!

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

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

// 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

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

以上就是Sublime text3如何修改tab键为缩进为四个空格的详细内容,更多请关注php中文网其它相关文章!

声明:本文转载于:cnblogs,如有侵犯,请联系admin@php.cn删除