razor icon indicating copy to clipboard operation
razor copied to clipboard

Razor Development: Pasting Leads to Weird Formatting

Open vsfeedback opened this issue 1 year ago • 0 comments

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


[severity:It's more difficult to complete my work] Please see the attached recording. I am pasting in a Razor component attribute, and after the paste is completed, an unexpected formatting occurs that leaves the element in an unexpectedstate:

Expected result:

<DragonSpark.Presentation.Components.Content.DisplayRemoteContent 
        Address="@Input.Content.Addresses.Source"
        Alteration="@(IsMarkdownContentType.Default.Get(Input.Content.Addresses.Source.ContentType) ? Markdownify.Default : Self<string>.Default)" />

    <DragonSpark.Presentation.Components.Content.DisplayRemoteContent Address="@Input.Content.Addresses.Source" />

Original Comments

Feedback Bot on 8/22/2024, 06:23 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.

Phil Allen [MSFT] on 9/10/2024, 02:58 PM:

We’re sorry you are running into this. After you end up in this state, does a document format (Ctrl+K, Ctrl+D) make the formatting what you expect or does it remain as it is?

Mike-E-angelo on 9/10/2024, 03:16 PM:

Thank you for your investigation Phil Allen [MSFT] this is what I see:

vsfeedback avatar Sep 26 '24 21:09 vsfeedback