Willem Mulder
Willem Mulder

Reputation: 14014

Sublime2 "translate_tabs_to_spaces: false" but it still inserts spaces. Why?

So I'm using Sublime Text 2, and I have set

"translate_tabs_to_spaces": false,

so that tabs remain tabs and don't get converted to spaces. However, when I type a tab, it still inserts 4 spaces, and not a tab. Does anybody know why that is?

Upvotes: 5

Views: 2626

Answers (2)

matabares
matabares

Reputation: 838

I have a trick for that. 1. Open the file 2. Select all. 3. Cut it. 4. Save file. 5. Close file. 6. Open file (It must be empty) 7. Paste it.

Thats all!.

Upvotes: 0

Willem Mulder
Willem Mulder

Reputation: 14014

Well, I found it just after posting. I had

"detect_indentation": true,

so it finds out that spaces are used instead of tabs, and will then use that instead of the default tabs.

Upvotes: 8

Related Questions