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 *

  • roblox error 280

    Having Trouble With Roblox Error 280? Here’s What to Do

  • hard disk smart command error

    Hard Disk SMART Command Failed – How to Fix 

  • files automatically deleted on click

    Files Getting Deleted Automatically? Here Are Some Reasons Why

  • error 400 when signing in

    Encountered Error 400 When Signing In to Microsoft? Here’s What You Can Do 

  • unable to create notebook error in onenote

    We Were Unable to Create Your Notebook Error in OneNote – Common Fixes 

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.

© 2026 Guiding Tech Media All Rights Reserved

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

© 2026 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