8000 Add example for tab space trick · FHCan/github-cheat-sheet@5c5278b · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c5278b

Browse files
author
Rafal Chmiel
committed
Add example for tab space trick
1 parent d391408 commit 5c5278b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabli
6565
### Adjust Tab Space
6666
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.
6767

68+
Here is a Go source file beofre adding `?ts=4`:
69+
70+
![Before, tab space example](http://i.imgur.com/GIT1Fr0.png)
71+
72+
...and this is after adding `?ts=4`:
73+
74+
![After, tab space example](http://i.imgur.com/70FL4H9.png)
75+
6876
### Commit History by Author
6977
To view all commits on a repo by author add `?author=username` to the URL.
7078

0 commit comments

Comments
 (0)
0