Default tab size changed from eight to four #168948
Replies: 7 comments 6 replies
-
Beta Was this translation helpful? Give feedback.
-
|
This is much appreciated, though it would be nice to have a toggle/default to show whitespace characters, especially if tab/space mixing is detected, similar to how missing trailing newline is visible as well. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
كيف يمكنني الاستفادة من هذا |
Beta Was this translation helpful? Give feedback.
-
|
السلام عليكم |
Beta Was this translation helpful? Give feedback.
-
|
Moi je veut que savoir a qu'elle point vous aidez les gens |
Beta Was this translation helpful? Give feedback.
-
|
All good for tomorrow with my people god |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What's new
We're updating the default tab size when viewing code and code snippets on GitHub from eight spaces to four spaces. This change affects all logged-out users and new accounts, making the default code display more consistent with common development practices.
Problem statement
The previous default tab size of eight spaces often resulted in code appearing more indented than many developers expected. Since many users are unaware that tab size can be adjusted in their settings, we're changing the default to better match typical development environments. By setting four spaces as the default, we aim to provide a code viewing experience that aligns with what most developers encounter in their daily work. Once logged in, users will still have the ability adjust their tab size according to their preferences by going to Settings > Appearance. This will not affect existing users who may still have the previous default setting of eight.
How to Provide Feedback
We want to hear from you! If you have thoughts or run into issues with the new default tab size, feel free to leave a comment below!
Beta Was this translation helpful? Give feedback.
All reactions