SaltfishTry for free

How to Adjust Tab Size for Code Rendering in GitHub

·2 min read
In this article

This guide will show you how to change the default tab size for code rendering in GitHub. Adjusting this setting can improve code readability to your preference.

Explore more GitHub tutorials with interactive Saltfish walkthroughs.

Here's how to adjust tab size for code rendering in GitHub

  1. Access User Settings

    To begin, click on your profile picture located in the top right corner of the GitHub interface. This action will open a dropdown menu with various user options.

  2. Navigate to Appearance Settings

    From the dropdown menu, select **Appearance**. This will take you to your personal appearance settings page where you can customize various display options.

  3. Locate Tab Size Preference

    On the Appearance settings page, scroll down until you find the **Tab size preference** section. This section allows you to define how tabs are rendered in code views.

  4. Open Tab Size Dropdown

    Within the **Tab size preference** section, click on the current tab size dropdown menu. This will display a list of available tab size options.

  5. Select New Tab Size

    From the displayed list, choose the number that represents your preferred tab size. Your selection will be automatically saved and applied to how code is rendered.

Your turn to show how it works.

Build a walkthrough of your product with Saltfish, then share it with your customers.

Create a guide with Saltfish

Frequently Asked Questions

You can find the tab size preference setting by clicking your profile picture, selecting 'Appearance', and then scrolling down to the 'Tab size preference' section.