Change Github online editor tab indent size

怎甘沉沦 提交于 2019-12-25 07:17:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!