GitHub / How to adjust tab size

Adding ?ts=4 to a diff or file URL will display tab characters as 4 spaces wide instead of the default 8. The number after ts can be adjusted to suit your preference. This does not work on Gists, or raw file views.

Here is a Go source file before adding

and this is after adding

No comments:

Post a Comment