刚刚安装了 Visual Studio 的 v16.8.3,我似乎正在获取 F# 的标签 [英] Just installed v16.8.3 of visual studio and I seem to be getting tabs for F#
问题描述
而不是空格.
我经常使用 F#,以前没有遇到过这个问题.我的 F# 设置似乎暗示制表符已转换为 4 个空格...插入空格 = 4"
I use F# quite a lot, not had this problem before. My F# settings seem to imply tabs are converted to 4 spaces..."insert spaces = 4"
v16.8.3
很奇怪
(实际上这是在新机器上的新安装而不是升级,这可能是相关的......我可能在很多个月前在我的普通机器上做了一些事情,我现在忘记了)
(actually this is a new install on a fresh machine not an upgrade, that may be relevant....I may have done something on my normal machine many moons ago, that Ive now forgotten)
推荐答案
我认为这是 Visual Studio 中的自适应格式行为:要关闭此行为,请转到工具 >选项,然后文本编辑器 >高级 >取消选中使用自适应格式"
I think this is the Adaptive Formatting behavior in Visual Studio: To turn off this behavior, please go to Tools > Options, and then Text Editor > Advanced > Uncheck "Use adaptive formatting"
如果您在编辑器上保留自适应格式,则可能仍会正确猜测(随着时间的推移),但结果不太可预测,尤其是.对于 F#.
If you leave adaptive formatting on the editor might still guess correctly (over time) but the outcome is less predictable, esp. for F#.
这篇关于刚刚安装了 Visual Studio 的 v16.8.3,我似乎正在获取 F# 的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!