Vorgin
Vorgin

Reputation: 387

How can I setup tab size in Sublime text 2 for each file type?

For example, in *.asm files I need a tab size that equals 20 spaces, and in *.cpp files - 2 spaces.

Upvotes: 25

Views: 7189

Answers (1)

Riccardo Marotti
Riccardo Marotti

Reputation: 20348

Open a .asm file in Sublime Text.

Then edit syntax specific settings with menu Preferences -> Settings - More -> Syntax Specific - User:

{
    "tab_size": 20
}

You can do the same with any other file type.

Upvotes: 44

Related Questions