Sublime Forum

"Indent Using Tabs" not working for certain file types

#1

For a while now I try to get ST to use TAB indentation for new files (or in general).

It works fine for example for .txt files, but if I open new .ps1 files it always switches to space indentation. I think thats a per-extension setting, but I am lost and dont know how / where that is configured.

Any ideas to solve this?

0 Likes

#2

The powershell package defaults to spaces, see https://github.com/SublimeText/PowerShell/blob/master/Support/PowershellSyntax.sublime-settings. You can override this in your syntax-specific settings. I can’t find a technical reason as to why this was done.

1 Like

#3

Thank you, that worked. I am almost sure I tried that before, but probably did not use the right variables.

0 Likes