Created
May 3, 2012 19:18
-
-
Save cowboy/2588448 to your computer and use it in GitHub Desktop.
JavaScript: tab indents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Coders, if your goal is to align foo and bar, using a <tab> character is | |
// incorrect. If your goal, however, is to create an additional level of | |
// indentation, then go you. Either way, with a tab size other than 4, this | |
// looks like shit. | |
var foo = 1, | |
bar = 2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BTW, I have made a tabs <-> spaces conversion utility, http://valjok.blogspot.com/2014/07/indentation-correction-for-exposing.html. I was forced to create it intentionally for gist formatting.