如何更改GitHub上的标签大小? [英] How to change tab size on GitHub?

查看:131
本文介绍了如何更改GitHub上的标签大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在GitHub上查看文件时,选项卡显示为8个空格(

  • Ace视图: https:// github。 com / moroshko / mmSelect / edit / master / mm_select.js


  • When I view files on GitHub, tabs appears as 8 spaces (example here).

    Is that possible to change this configuration to 2 or 4 spaces?

    解决方案

    Update

    Yes. As stated by mortenpi, this can be done by through an additional query parameter. See his answer for more details.

    Original answer

    Is that possible to change this configuration to 2 or 4 spaces?

    No. It's only available as part of the editing feature through the Ace editor and the change is not persisted.

    This blog post gives some more information about the embedded IDE.

    However, provided you know the url of the blob (file) you're willing to review, you can switch to the edit mode easily by changing the blob segment with an edit segment and use the dropdown to select your prefered tab size.

    这篇关于如何更改GitHub上的标签大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆