Sublime Forum

Tabs as 2 spaces, but displayed as 4?

#1

Our company standard practice is to use 2 spaces for tab indents, but I find 4 spaces far more readable. Is there a way to save with two spaces, but display in ST2 with 4?

0 Likes

#2

You could create a plugin that on_pre_save converts the tabs to 2 and on_post_save reverts it back to 4.

0 Likes

#3

Good idea! I’ll give it a look. I’m new to ST2, but it would be fun to try that.

0 Likes