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

Viewed 87

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)

2 Answers

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

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.

Related