Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indention eliminated when copy and paste in F# code #9875

Closed
vsfeedback opened this issue Aug 5, 2020 · 5 comments
Closed

Indention eliminated when copy and paste in F# code #9875

vsfeedback opened this issue Aug 5, 2020 · 5 comments
Labels
Area-LangService-API Bug Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


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


Original Solutions

(no solutions)

@abelbraaksma
Copy link
Contributor

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.

2fb62122-77da-446c-9aea-710ac5bf1ce9

@abelbraaksma
Copy link
Contributor

abelbraaksma commented 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
Copy link
Contributor

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
Copy link
Contributor

dsyme commented Sep 1, 2020

I do think this needs fixing, I notice it all the time.

@dsyme dsyme added the Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code. label Sep 1, 2020
@cartermp cartermp added this to the Backlog milestone Sep 1, 2020
@dsyme
Copy link
Contributor

dsyme commented Nov 5, 2021

Duplicate of #12158

@dsyme dsyme marked this as a duplicate of #12158 Nov 5, 2021
@dsyme dsyme closed this as completed Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-LangService-API Bug Impact-Medium (Internal MS Team use only) Describes an issue with moderate impact on existing code.
Projects
None yet
Development

No branches or pull requests

4 participants