Sublime Forum

Sublime Text 3: trying to always use tabs, still seeing spaces

#1

Hi,

Have a problem with using tabs instead of spaces. In particular, when the file contains spaces (let’s say 8 for two indentation levels), then I click ‘enter’ and it auto-indents to the same position and inserts 8 spaces. In this case, I would expect to see two tabs instead. Any clue how to fix it?

My settings are like these:

"detect_indentation": false,
"translate_tabs_to_spaces": false,
"use_tab_stops": true,
"draw_white_space": "all",
"tab_size": 4,

Thanks for any help :slight_smile:

0 Likes

#2

Seems to be working as expected, the editor should not allow to mix tabs and spaces like this.

You may look into this GitHub issue for Sublime Text:

  1. https://github.com/SublimeTextIssues/Core/issues/162 Sublime Text inserts space characters instead of tab characters in some files
0 Likes