Home  >  Article  >  Development Tools  >  How to modify the tab key to indent to four spaces in Sublime text3

How to modify the tab key to indent to four spaces in Sublime text3

藏色散人
藏色散人forward
2020-07-13 13:32:413696browse

The following tutorial column of sublime will introduce to you how to modify the tab key in Sublime text3 to be indented to four spaces. I hope it will be helpful to friends in need!

How to modify the tab key to indent to four spaces in Sublime text3

1. Click Preferences-> Setting in the menu bar, as shown in the figure

2. In the pop-up In Preferences.sublime-settings-User, add the following three lines:

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

As shown in the figure below, save and exit.

The above is the detailed content of How to modify the tab key to indent to four spaces in Sublime text3. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete