Home > Development Tools > sublime > body text

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

藏色散人
Release: 2020-09-19 16:25:38
forward
4244 people have browsed it

The tutorial column of sublime below 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

Sublime Text is a text editor (paid software, can be tried indefinitely, but there will be an activation prompt pop-up window), and it is also an advanced code editor device. Sublime Text was developed by programmer Jon Skinner in January 2008. It was originally designed as a Vim with rich extension functions.

Sublime Text has a beautiful user interface and powerful features such as code thumbnails, Python plug-ins, code snippets, etc. Key bindings, menus and toolbars can also be customized. The main features of Sublime Text include: spell check, bookmarks, complete Python API, Goto function, instant project switching, multi-selection, multi-window and more. Sublime Text is a cross-platform editor that supports Windows, Linux, Mac OS X and other operating systems.

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

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


1     // The number of spaces a tab is considered equal to2     "tab_size": 4,3     // Set to true to insert spaces when tab is pressed4     "translate_tabs_to_spaces": true,5     //设置保存时自动转换6     "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