In Visual Studio 2019 with Microsoft Visual F# Tools 10.4 for F# 4.6, I am seeing unexpected cut-and-paste behavior. If I cut a block of F# code and then paste it somewhere else in my file, the code block is no longer indented to the same level.
This is a feature, not a bug.
...a feature that intelligently indents pasted code based on where your cursor is.
from https://devblogs.microsoft.com/dotnet/announcing-f-4-6/
To enable or disable this feature, look at Tools > Options > Text Editor > F# > Formatting > Reformat indention on paste.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With