1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-10 01:46:37 +02:00

Merge pull request #91 from paulirish/patch-1

Chrome extension for GH tab size
This commit is contained in:
Tim Green
2015-01-18 22:17:53 +00:00

View File

@@ -75,7 +75,7 @@ Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabli
[*Read more about GitHub secrets.*](https://github.com/blog/967-github-secrets)
### Adjust Tab Space
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.
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, but a [Chrome extension](https://chrome.google.com/webstore/detail/github-tab-size/ofjbgncegkdemndciafljngjbdpfmbkn) can automate this.
Here is a Go source file [before](https://github.com/pengwynn/flint/blob/master/flint/flint.go) adding `?ts=4`: