Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

How to Configure the Tab Width in Sublime Text 3

Mel HawthorneSeptember 15, 2020 Comments (0)

One of the ever-present arguments between developers in many programming languages is how to correctly indent code. Many developers choose to indent code with one or more spaces, while others prefer to use tabs. Both options have their benefits, with spaces offering a consistent level of indentation; while tabs are explicitly designed for use in indentation, allow developers to configure how a single tab displays, and make it much less likely to run into half-indentation.

Tip: Half-indentation is an issue where two documents use a different number of spaces to indent. For example, if you use a single space to indent content in one document, then copy code from double-space indented code, they won’t be compatible. With tabs, this isn’t really an issue, as tabs are wide enough that no-one uses double-tab indentation.

Any decent development environment, such as Sublime Text 3 allows developers to set how wide they want tab characters to appear. This is primarily a personal preference issue, as it makes no difference to the actual code, a single tab character is used no matter if that tab is configured to take the same amount of space as two, three, or more spaces.

To configure the tab width in Sublime Text 3, click on “View” in the top bar, then click on “Indentation” in the drop-down list. Next, in the second level of the drop-down list select the width you want a tab to take up. Sublime Text 3 defaults to tabs being four spaces wide.

Tip: If you prefer using spaces for indentation, you can enable the “Indent Using Spaces” option at the top of the tab width menu. This will convert any press of the tab key to the number of spaces specified.

Click on “View” in the top bar, then click on “Indentation”, and select a tab width from the second level of the drop-down list.

Categories: Software

Author Mel Hawthorne

You Might Also Like

  • File Header

    What Are KML Files?

    Mel HawthorneSoftware
  • Chrome Header

    How to Make Your Own Google Chrome Theme

    Mel HawthorneSoftware
  • How to Add Game to Steam

    Mel HawthorneSoftware
  • How To Fix Static On Apples FaceTime

    MonaSoftware

Leave a Reply

Your email address will not be published. Required fields are marked *

  • fix error 0x9cfc7550

    How to Fix Error 0x9cfc7550 (We Couldn’t Create a New Partition) in Windows 

  • fix error code 0x3000008 1

    How to Fix Error Code 0x3000008 for Remote Desktop Connection

  • fix error code 0x80190001 1

    How to Quickly Fix Error 0x80190001 for Microsoft or Outlook Account Login 

  • fix filecoauth.exe application error

    Fix FileCoAuth.exe Application Error 

  • fix error code 0x80010002 in windows update

    How to Fix 0x80010002 Error in Windows Update 

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2025 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Terms of Use
  • Privacy Policy

© 2025 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on September 15, 2020 by Mitch Bartlett