github-tab-size
Chrome/Opera extension - Make tab indented code more readable by forcing the tab size to 4 instead of 8
A browser extension that makes GitHub display tab-indented code with 4 spaces instead of 8, so code is easier to read on screen.
GitHub Tab Size Explanation
When you're reading code on GitHub in your browser, files that use tab characters for indentation can look awkwardly wide—GitHub's default displays tabs as 8 spaces, which makes code hard to scan and often forces you to scroll horizontally. This extension fixes that by telling GitHub to display tabs as 4 spaces instead, making the code fit better on your screen and easier to read.
The solution is straightforward: once you install the extension, it automatically adjusts how your browser renders any code you view on GitHub. No settings to configure, no buttons to click—it just works in the background whenever you land on a GitHub page with code. It's a tiny change, but one that matters a lot if you spend time reviewing or reading other people's code.
You'd want this if you regularly browse GitHub repositories—whether you're a developer reviewing pull requests, a founder checking out open-source projects, or anyone who finds themselves squinting at deeply indented code blocks. It's especially useful when looking at legacy code or projects that use tabs for indentation, which can otherwise waste screen space and make the code harder to understand at a glance.
The author kept it intentionally minimal: it does one thing and does it well, with no extra options or customizations. It's available as an extension for Chrome and Opera, and you can install it directly from their respective web stores.
Where it fits
- Read tab-indented legacy code on GitHub without excessive horizontal scrolling.
- Review pull requests more comfortably by narrowing tab-based indentation.
- Browse open-source projects with cleaner-looking code display.