XAML Autocomplete annoying behaviour

Answered

Hi

I am having trouble with the autocomplete functionality in XAML.  I am working on an Avalonia app and using the XAML to design the view.

When I start typing, for example "Label", the autocomplete suggests to add a Label XML tag, which is correct.

I then press Tab to autocomplete and to insert the tag.  It inserts both the opening and closing tag, however it included the next word in the editor in the opening tag as if it is trying to make it an attribute.

For example if I try to insert a label

<StackPanel>
<La
Welcome to Avalonia!
</StackPanel>

And press Tab to auto complete, it results in this

<StackPanel>
<Label
Welcome></Label> to Avalonia!
</StackPanel>

Which is not valid XML and is very annoying to have to correct.  I suspect it is doing this weird behaviour because I am adding an XML tag next to plain text.  But I would expect the behaviour to at least be

<StackPanel>
<Label></Label>
Welcome to Avalonia!
</StackPanel>

or it should encapsulate the entire plain text in the content of the tag

<StackPanel>
<Label>Welcome to Avalonia!</Label>
</StackPanel>

But the current behaviour is very annoying and counter productive.

Is there a way to change the behaviour, or should this be flagged as a bug?

I am using 
Linux Mint 20

Jetbrains Rider 2021.1.3

Regards

1 comment
Comment actions Permalink

Hello Grimessa,

Thank you for reporting the issue, we were able to reproduce it, here is the corresponding record on our tracker: RSRP-485087, please watch it for monitoring the progress and feel free to leave comments or ask any other questions.

0

Please sign in to leave a comment.