K
K
krll-k2015-03-27 23:39:40
ruby
krll-k, 2015-03-27 23:39:40

How to set a specific tab stop for certain file types in Sublime Text?

Tabs through tabs are enabled by default. One tab equals four spaces. I need a tab with two spaces. How to set a specific tab stop for certain file types in Sublime Text? That is, I need such a setting for only one particular syntax. Do you understand the complexity of the issue?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
krll-k, 2015-03-28
@krll-k

Preferences -> Settings - More -> Syntax Specific - User

{
    "tab_size": 2,
    "translate_tabs_to_spaces": true
}

Ctrl+Shift+S, Packages/User/<syntax>.sublime-settings
https://www.sublimetext.com/docs/3/settings.html

E
Evgeny Komarov, 2015-03-28
@maNULL

Preferences -> Settings - More -> Syntax Specific - User

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question