Home > Development Tools > sublime > 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

藏色散人
Release: 2020-07-13 13:32:41
forward
3743 people have browsed it

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
Copy after login

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template