Just installed v16.8.3 of visual studio and I seem to be getting tabs for F#

邮差的信 提交于 2021-02-20 18:49:13

问题


instead of spaces.

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

very odd

(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)


回答1:


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"

If you leave adaptive formatting on the editor might still guess correctly (over time) but the outcome is less predictable, esp. for F#.




回答2:


from the comments above (@wp78de...if you post this as the answer I'll mark it as such).

"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"."

this worked for me.



来源:https://stackoverflow.com/questions/65255258/just-installed-v16-8-3-of-visual-studio-and-i-seem-to-be-getting-tabs-for-f

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