I indent with spaces... only if automatic
November 05, 2017
I wont press space-space-space-space. Hell nah.
But I save my files indented with spaces instead of tabs. In other words I use soft tabs.
Here are a two reasons why I am doing this:
- Have not encountered an open source project that uses hard tabs
- When using CLI tools to scaffold, the code is indented with spaces
I use emacs and have setup my .php_cs and .jsbeautifyrc to tab with spaces. This way I do not have to press space-space-sp.... ahhh!
For me, "pressing" tab to indent is what's important. Not saving files indented with tabs (though in the back of my mind, I wish tabs replaced spaces completely).