Chrome extension with a user stylesheet that applies a single rule to the root element:
html {
tab-size: 2;
}
This fixes the default tab-size
value being 8, which is too large for most types of code.
A global user stylesheet requires global content permissions, so it's a good security practice to avoid extension like this unless they're from reputable vendors. Possible workarounds are:
- Making your own extension (like I've done here), but hosting it in the Chrome Web Store requires a developer account
- Loading an unpacked extension after enabling Developer mode in
about:extensions
, but this will cause Chrome to nag about it on startup
It's a static stylesheet, so there's no configuration, and hopefully also no impact on performance.
Install the extension from Chrome Web Store or load it unpacked.
MIT