问题描述
当我在 GitHub 上查看文件时,选项卡显示为 8 个空格.
例子:
是否可以将此配置更改为 2 个或 4 个空格?
更新
是的.正如 mortenpi 所说,这可以通过一个额外的查询参数来完成.请参阅
When I view files on GitHub, tabs appear as 8 spaces.
Example:
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
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.
- Standard view: https://github.com/moroshko/mmSelect/blob/master/mm_select.js
- Ace view: https://github.com/moroshko/mmSelect/edit/master/mm_select.js
这篇关于如何更改 GitHub 上的选项卡大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!