How to change the Tab in Sublime to four spaces

Source: Internet
Author: User

How to change the Tab in Sublime to four spaces

For beginners of sublime, especially Python users, how can the software automatically correct the Tab to a specified number of spaces? The following describes the tips.

In the Sublime configuration file, you can control the Tab. The details are as follows:

Open Preferences Setting-Default and find the following content:

// The number of spaces a tab is considered equal

"Tab_size": 4,

// Set to true to insert spaces when tab is pressed

"Translate_tabs_to_spaces": false,

Specifically, translate_tabs_to_spaces controls whether Sublime automatically converts a Tab to a space. We only need to set it to True, but this will cause confusion in Sublime configuration, so overwrite it in the user configuration file.

Open Prefrences Setting-User and add the following content to overwrite the software meditation settings.

// The number of spaces a tab is considered equal

"Tab_size": 4,

// Set to true to insert spaces when tab is pressed

"Translate_tabs_to_spaces": ture,

For more information about Sublime Text, see:

Ubuntu installation code editor Sublime Text 3 (Build 3083)

Animation display 16 Sublime Text Shortcut Key Usage

Ubuntu 12.10 install and crack Sublime Text 2

High-end customization is the only way to make sublime an exclusive IDE

Install Sublime Text 2 on Ubuntu 13.04

Code artifact-Sublime Text package management tools and extensions

How to Develop the Sublime Text 2 plug-in

Install and crack the Sublime Text 2 editor in Windows Mac Linux

Text Editor Sublime Text User Experience

Sublime Text details: click here
Sublime Text: click here

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.