Skip to content

Instantly share code, notes, and snippets.

@cowboy
Created May 3, 2012 19:18
Show Gist options
  • Save cowboy/2588448 to your computer and use it in GitHub Desktop.
Save cowboy/2588448 to your computer and use it in GitHub Desktop.
JavaScript: tab indents
// 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;
@valtih1978
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment