I’m a tabs over spaces man. When viewing code on GitHub, tabs are sized to 8 spaces. There are three ways to solve this issue.
?ts=4
to the URL. Manually? All the time? Ermmm, no..editorconfig
file. Ah!GitHub will honour these settings if placed in a .editorconfig
file in your repo.
root = true
[*]
indent_style = tab
indent_size = 4
EditorConfig is an attempt to standardise IDE settings.
Thanks to John Gardner for the quick answer.