gpt4 book ai didi

go - LiteIDE中Tab符号的空格

转载 作者:IT王子 更新时间:2023-10-29 02:05:56 26 4
gpt4 key购买 nike

我可以在LiteIDE 中调整tab 符号的间距设置吗?该空间与其他编辑器不同。我试图找到它,但找不到如何调整空间。

谢谢。

最佳答案

那是因为 go fmt 不再授权修改制表符宽度:参见 revision 34dac78e0550 ,如 LiteIDE issue 125 中所讨论:

cmd/gofmt:删除-tabwidth-tabs 标志

Having these flags misleads people into thinking they're acceptable for code that "must be gofmt'd".

If an organization wishes to use gofmt internally with different settings, they can fork gofmt trivially. But "gofmt" as used by the community with open source Go code should not support these old knobs.


也就是说,自20121228-ver-x151 以来,编辑器本身仍然允许自定义制表符宽度。 :

转到 View > Options > LiteEditor > File Types

custom tab width

关于go - LiteIDE中Tab符号的空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25417787/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com