Tab size is too wide when viewing code #4893
|
Currently, tabs are set to be 8 spaces, which makes looking at tab-formatted code really difficult, and lines wrap everywhere. This is already a way to change the tab size when editing, but not while viewing. Simply having this option while viewing code would make a big difference. I'm aware of the This issue has gotten significant attention at isaacs/github#170, with almost 200 👍. (Make sure to upvote this, not just add a 👍). |
Replies: 2 comments 17 replies
And if that's too much to ask for, then please, please, add a repository-level setting to configure the default tab-width so incorrigible hacks like this are no longer necessary. It defaults the whole purpose of semantic indentation. I've been requesting this feature for years, even going so far as to include code samples to overcome my inability to submit a pull-request. The frustrating part is that this is a VERY simple feature to implement, and one that's been heavily requested time and time again by countless users. Listen to us, GitHub. Please/ |
|
Hey everyone 👋 good news, you can now define the tab size in the Appearance settings of your user account. Code rendered on GitHub with tab indent will use your preferred tab size. |

Hey everyone 👋 good news, you can now define the tab size in the Appearance settings of your user account. Code rendered on GitHub with tab indent will use your preferred tab size.