问题
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