A
A
Alexander Proshchenkov2018-07-10 20:05:44
Sublime Text
Alexander Proshchenkov, 2018-07-10 20:05:44

How to change the default tab value for a specific file type in sublime text3?

How to change the default tab value for a specific file type in sublime text3 ?
For example, in html and css files - 2 spaces, in py files, tabs are 4 spaces

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-07-11
@Keltor

1. Open a file of the desired type (for example, a py file)
2. Go to the
Mac menu : Preferences -> Settings - Syntax Specific
Win : Preferences -> Settings -> More -> Syntax Specific -> User
3. A file with settings for the current one should open format (the name should be like " Python.sublime-settings ")
4. Add or change the following setting:

{
    "tab_size": 4
}

5. Save. Open a file of a different type and repeat the procedure from the beginning.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question