Obviously this is personal preference when you're creating code on your own machine. However, since adding tabs to a text box is not (as far as I know) natively supported in most browsers. Three or four spaces would make editing/formatting questions and answers easier. This wouldn't need to be done on paste (though that would be nifty), but could be done at question/answer save time. Is something like that feasible?
Two tabs Eight spaces
Appears in the editor like:
Which makes it annoying for lining up things for formatting. Maybe this is just nit-picky, but it would be nice to have some consistency.
Allow me to make this clearer, there seems to be some confusion.
I clearly agree that mixing tabs and spaces is bad. This post is advocating for not having both. Since browsers typically only allow spaces as input, I'm saying we should automatically switch to spaces. Otherwise, if you want to edit code that's been pasted in with tabs, you can only add spaces, therefore mixing tabs and spaces. If the editor converted tabs to spaces, we'd never have mixed tabs and spaces.