You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Indention eliminated when copy and paste in F# code #9875
[severity:I’m frustrated, but able to complete my work]
In F# code, copying lines that have some indents and pasting them result in the lines with no indents.
Original Comments
Feedback Bot on 8/2/2020, 09:36 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
You have to disable "reformat on paste" in Options > Text Editor > F# > Formatting, that feature is totally broken (or at least, I haven't seen it working on my machine). It should probably be disabled by default and get the "Experimental" flag.
There's however a way of using this feature properly, which means you have to have your cursor in the right position. See this: #6281 (comment), and this #4702.
Though I'd consider this a bug still, as this isn't clear and not easy to get right. Otherwise, it would be a great feature to have.
I think this could be improved, but ultimately it's still just pasting lipstick on the pig that is our lack of proper code formatting tools in VS for F#. We don't integrate with fantomas, which could offer up that support. It's something we should really revisit.
Activity
abelbraaksma commentedon Aug 7, 2020
You have to disable "reformat on paste" in Options > Text Editor > F# > Formatting, that feature is totally broken (or at least, I haven't seen it working on my machine). It should probably be disabled by default and get the "Experimental" flag.
abelbraaksma commentedon Aug 7, 2020
There's however a way of using this feature properly, which means you have to have your cursor in the right position. See this: #6281 (comment), and this #4702.
Though I'd consider this a bug still, as this isn't clear and not easy to get right. Otherwise, it would be a great feature to have.
cartermp commentedon Aug 10, 2020
I think this could be improved, but ultimately it's still just pasting lipstick on the pig that is our lack of proper code formatting tools in VS for F#. We don't integrate with fantomas, which could offer up that support. It's something we should really revisit.
dsyme commentedon Sep 1, 2020
I do think this needs fixing, I notice it all the time.
dsyme commentedon Nov 5, 2021
Duplicate of #12158