Skip to content

Instantly share code, notes, and snippets.

@dandean
Last active August 29, 2015 14:09
Show Gist options
  • Save dandean/3d98be9b1ae8a5426e56 to your computer and use it in GitHub Desktop.
Save dandean/3d98be9b1ae8a5426e56 to your computer and use it in GitHub Desktop.
The theory that tab characters grant us the ability to have self-determined indent widths breaks down whenever a file contains content which is meant to be vertically aligned.
var foo = "foo",
bar = "bar";
var foo = "foo",
bar = "bar";
@folktrash
Copy link

Come on Dan. The fact that a tab is typically 4 spaces, and "var space" is typically 4 spaces is totally a coincidence. Plus - you're setting your tab chars to what 8 chars? If you want things aligned vertically, you have to use the same chars to align them. In this case, you're not.

@dandean
Copy link
Author

dandean commented Nov 12, 2014

I have seen this happen so many times.

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