I can’t seem to get the Sublime Text 2 SublimeLinter package to stop showing the “Mixed tabs and spaces” warning.
I’ve set “smarttabs” : true in the settings, but it’s still not taking.
Has anyone else solved this problem yet?
Here’s my user settings for the SublimeLinter package: https://gist.github.com/3737558
Thanks.
I solve the problem like this.
First do not use mix tabs and spaces in the files. Use spaces only. Sublime can finely handle the indentation without a hard tab character.
Setup Sublime Text 2 to use spaces only:
If you encounter any old files with mixed tabs and spaces you can convert them to spaces only from View > Indentation > Convert tabs to spaces menu.
Why tab character is bad in your source code