• Skip to main content
  • Skip to primary sidebar

Technipages

Smart phone, gadget and computer tutorials

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
How to Configure the Tab Width in Sublime Text 3

How to Configure the Tab Width in Sublime Text 3

Posted on September 15, 2020 by Mel Hawthorne Leave a Comment

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.

You Might Also Like

  • Fix Sublime Text Does Not AutocompleteFix Sublime Text Does Not Autocomplete
  • Troubleshooting Sublime Text Not RespondingTroubleshooting Sublime Text Not Responding
  • How to Change the Theme in Sublime Text 3How to Change the Theme in Sublime Text 3
  • How to Hide the Minimap in Sublime Text 3How to Hide the Minimap in Sublime Text 3
  • Find and Replace in Sublime Text 3Find and Replace in Sublime Text 3
  • How to View Multiple Documents at Once in Sublime Text 3How to View Multiple Documents at Once in Sublime Text 3
  • Fix Sublime Text Error Permission DeniedFix Sublime Text Error Permission Denied
  • Fix Sublime Text Error Trying to Parse SettingsFix Sublime Text Error Trying to Parse Settings
  • How to Enable Syntax Highlighting in Sublime Text 3How to Enable Syntax Highlighting in Sublime Text 3

Filed Under: Software

Reader Interactions

Did this help? Let us know! Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • Can’t Connect to Google Play? Try These Useful Tips
  • How to Fix Zoom Error Code 614
  • Google Duo on Android: How To Enable Low-Light Mode
  • Troubleshooting Zoom Error 3065
  • How to Fix Microsoft Teams Error caa82ee2
  • Zoom: How to Change the Size of the Text in Chat Windows
  • Slack: How To Change Your Display Name
  • WhatsApp: How to Hide Your Profile Picture from a Specific Contact

Who’s Behind Technipages?

Baby and Daddy 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.

Follow me on Twitter, or visit my personal blog.

You May Also Like

© Copyright 2021 Technipages · All Rights Reserved · Privacy