Skip to content

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

Closed

Description

@vsfeedback

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)

Activity

  1. abelbraaksma commented on Aug 7, 2020

    @abelbraaksma
    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

  2. abelbraaksma commented on Aug 7, 2020

    @abelbraaksma
    Contributor

    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.

  3. cartermp commented on Aug 10, 2020

    @cartermp
    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.

  4. dsyme commented on Sep 1, 2020

    @dsyme
    Contributor

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

  5. added
    Impact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.
    on Sep 1, 2020
  6. added this to the Backlog milestone on Sep 1, 2020
  7. dsyme commented on Nov 5, 2021

    @dsyme
    Contributor

    Duplicate of #12158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-APIBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions