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: