Search code examples
githubtabssettingsgithub-for-windowsgithub-for-mac

How to change tab size in GitHub desktop app?


I'm working on a project that uses tabs incorrectly, and therefore doesn't like that the GitHub desktop app shows them as being 4 spaces wide in the diff.

This is not nice as it's hard to read the diff inside the app because the code shows up as not being properly indented.

Is there a setting that allows to customize the tab size?


Solution

  • This feature is available since 3.4.2. You can find it here:

    File -> Options -> Appearance -> Tab size

    Have a look at the release notes:

    3.4.2
    
    Released: 6/25/2024
    
        [New] Option to use Git Credential Manager for repositories hosted outside of GitHub.com - #18700
        [New] Allow customizing tab character width in spaces - #15561
        [Fixed] Remote urls containing spaces are now displayed in their entirety in the remote settings screen - #18876
        [Fixed] Newly uploaded images are rendered in Pull Request comments and reviews - #18830