Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to change the tab key to indent to four spaces by Sublime text3

Shulou Source: shulou.com Published: 2022-06-02 14:59:42 10月27日 Update

This article is about how Sublime text3 modifies the tab key to indent to four spaces. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Sublime Text is a text editor (paid software that can be tried indefinitely, but with activation prompts), as well as an advanced code editor. Sublime Text was developed by programmer Jon Skinner in January 2008 and 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 and so on. You can also customize key bindings, menus and toolbars. The main features of Sublime Text include: spell checking, bookmarking, complete Python API, Goto functions, instant project switching, multi-choice, multi-window and so on. Sublime Text is a cross-platform editor that supports operating systems such as Windows, Linux, Mac OS X and so on.

1. Click Preferences- > Setting in the menu bar, as shown in figure 2. In the pop-up Preferences.sublime-settings-User, add the following three lines: 1 / / The number of spaces a tab is considered equal to2 "tab_size": 4 translate_tabs_to_spaces 3 / / Set to true to insert spaces when tab is pressed4 "translate_tabs_to_spaces": true,5 / / set to automatically convert 6 "expand_tabs_on_save" when saving: true as shown below, save and exit.

Thank you for reading! This is the end of this article on "how to modify the Sublime text3 tab key to indent to four spaces". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Features code editors spaces content at the same time more articles menus good practical powerful beautiful operating system bookmarks advanced tools toolbars plug-ins text Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Information Shulou Tech Info Docker Xiaomi