As a WordPress developer, I deal with lots of code indented with tabs (rather than spaces). By default when viewing these files in GitHub, each tab is rendered as 8 spaces. On my personal machine, I render each tab as 4 spaces. This difference makes it less pleasant to view code in GitHub, however, I just learned I can set my preferred tab rendering in GitHub!
How to Set Tab Size in GitHub
- Go to https://github.com/settings/appearance
- Scroll down to the
Tab size preference
section - Use the select drop-down to choose your preferred number of spaces
Leave a Reply