问题
I am writing blog using Jekyll on github page.
Instead of using offline editors, I use github online editor which supports markdown very well.
But I when I edit posts, github editor set the default indent size to 8. I tried to change it to 4, but after I save it and reedit this post, github editor reset the indent size to 8.
I am wondering why this happens. How can I set the default indent size to 4 for every file?
Thanks!
回答1:
It's not a permanent setting. You can change it for the edit mode with the dropdown you mention and for blob mode by appending ?ts=4
to the URL on a per-file basis.
If you're using chrome, you could use Sindre Sorhus' tab-size-on-github extension that does exactly what you want: Force all tabs to represent 4 spaces always.
来源:https://stackoverflow.com/questions/38894791/change-github-online-editor-tab-indent-size