Sublime Forum

Default to soft tabs instead of hard tabs

#1

As there is no good reasons to use hard tabs in the first place, in (almost any) programming language

http://opensourcehacker.com/2012/05/13/never-use-hard-tabs/

0 Likes

#2

Eh, I don’t really think this is a great argument to start up. We don’t need a ‘tabs vs spaces’ holy war (I, for instance, disagree with the article you linked)… :wink:
Regardless, the defaults are easy enough to change that it shouldn’t really matter. It’s mostly a matter of preference, not one of impeded usability or function. There are just as many people who indent with tabs as with spaces, so there isn’t really a ‘right’ answer — someone’s going to get angry either way.

0 Likes

#3

[quote=“miohtama3”]As there is no good reasons to use hard tabs in the first place, in (almost any) programming language

http://opensourcehacker.com/2012/05/13/never-use-hard-tabs/[/quote]

Just about every modern text editor has an option to modify the length of hard tabs which makes using hard tabs a lot more universal because every coder on specified project can use his own indentation setting. For me that’s enough reason to disagree with that article.

0 Likes

#4

I prefer hard tabs. Less keypresses to insert/backspace. Flexible widths on a whim. Smaller file size.
They’re not major arguments, but they’re there.

0 Likes

#5

As, unsurprisingly, there will be consensus about the matter would the following be possible:

Ship Sublime with hard tabs disabled for those programming languages of which style guide prefers spaces.

0 Likes

#6

[quote=“miohtama3”]As, unsurprisingly, there will be consensus about the matter would the following be possible:

Ship Sublime with hard tabs disabled for those programming languages of which style guide prefers spaces.[/quote]

The Python syntax has soft tabs by default. I’m not sure for other languages, but the point is that it is already possible.

0 Likes