# Set tab size on GitHub

**URL:** <https://discourse.gohugo.io/t/set-tab-size-on-github/57563>\
**Category:** tips & tricks\
**Created:** [September 18, 2026, 1:45pm UTC](https://discourse.gohugo.io/t/set-tab-size-on-github/57563 "2026-09-18T13:45:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [September 18, 2026, 1:45pm UTC](https://discourse.gohugo.io/t/set-tab-size-on-github/57563/1 "2026-09-18T13:45:37Z")

</div>

This is especially relevant of you format your templates with [gotmplfmt](https://github.com/gohugoio/gotmplfmt/) and the default tab size 4 give a little too much indendation when viewed on GitHub:

> **[Managing your tab size rendering preference - GitHub Docs](https://docs.github.com/en/account-and-profile/how-tos/account-settings/managing-your-tab-size-rendering-preference)**
>
> You can manage the number of spaces a tab is equal to for your personal account.
