8000 Add Tab Space URL hack · FHCan/github-cheat-sheet@d6047a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6047a2

Browse files
committed
Add Tab Space URL hack
1 parent f1825eb commit d6047a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
44
## Table of Contents
55
- [GitHub](#github)
66
- [Ignore Whitespace](#ignore-whitespace)
7+
- [Adjust Tab Space](#adjust-tab-space)
78
- [Commit History by Author](#commit-history-by-author)
89
- [Cloning a Repository](#cloning-a-repository)
910
- [Comparing Branches](#comparing-branches)
@@ -61,6 +62,9 @@ Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabli
6162

6263
[*Read more about GitHub secrets.*](https://github.com/blog/967-github-secrets)
6364

65+
### Adjust Tab Space
66+
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.
67+
6468
### Commit History by Author
6569
To view all commits on a repo by author add `?author=username` to the URL.
6670

0 commit comments

Comments
 (0)
0