GitHub: better-sized tabs in code

Added by Rory O’Kane@userstyles, Created: Aug 09, 2012, Updated: Mar 18, 2015
Desired tab size
Desired tab size for Ruby

Description:

Change the width of tab characters in code from the default 8 spaces wide to 4 spaces wide. For Ruby code, tabs are 2 spaces wide. (Number of spaces is customizable using the selectors.) This style applies to code anywhere on GitHub – in repositories and in Gists.

For example, code might go from
really
        long
                indents
to
more
    reasonable
        indents
This only affects code indented with tab characters (\t). Code indented with multiple spaces will look the same.

Customize your desired size of tabs below.

More info
See also my user style “http://freestyler.ws/style/84458/all-code-has-custom-tab-size”, which affects all websites.

Installs:
Applies to:
github.com

Related styles:

WARNING: This webware is not functioning properly. Please enable javascript in your browser and try again.