Can I set different tab types for different file types?


#1

In config.cson file, I can set the tabLength for different file types, but the tabType setting seems has no effect. Is that possible to set tab type to “hard” for PHP files and tab type “soft” for all other files?


#2

Yes, it is totally possible. Here’s what I added to my config.cson:

".html.php.text":
  editor:
    tabType: "hard"

And here’s what my indentation-indicator package reports when I’ve opened a PHP file:

And my default tabType is soft:


#3

Got it. Thank you!