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
I first enter the ng-template tag which activates multicursor, then I use the key combi to select and jump to the end of the line, go one back and use "Backspace" to delete the attribute.
This is a common operation, but now with mirror cursors it might break the HTML as seen in the gif above. Moreover, if the opening & closing tag are further apart, one might not even notice the HTML is broken.
Does this issue occur when all extensions are disabled?: Yes
Reacted by Mohamad Rahal (Mohal), Anthony Lenglet, Igor Krupenja and Igor
This also brings up an issue when you try to add an attribute to multiple tags that have none.
If you click the open tag, it'll select the opening and closing, and usually when you're at the end and you press space to type in the attribute it doesn't add the attributes to the closing tag, but when you're adding more cursors to the tags in other lines, it doesn't act like that anymore and adds the attributes to both tags.
yuc0n Yeah looking at the current implementation, there's no support at all for multiple cursors. That's gonna take some work for the behavior to work correctly.
Activity
mrahhal commentedon Dec 14, 2019
Also faced this quite a lot as this is a very common operation. Related to this is ctrl+shift selecting out of the element tag name.
I'd like to work on. The fix would be to exit mirror mode if the selection is not empty and we reach a none-matching state.
yuc0n commentedon Dec 14, 2019
This also brings up an issue when you try to add an attribute to multiple tags that have none.
If you click the open tag, it'll select the opening and closing, and usually when you're at the end and you press space to type in the attribute it doesn't add the attributes to the closing tag, but when you're adding more cursors to the tags in other lines, it doesn't act like that anymore and adds the attributes to both tags.
I went crazy trying to find this to disable it.
mrahhal commentedon Dec 14, 2019
yuc0n Yeah looking at the current implementation, there's no support at all for multiple cursors. That's gonna take some work for the behavior to work correctly.
secf4ult commentedon Dec 15, 2019
This feature doesn't work well with extension vim too, have to shut it down.
octref commentedon Dec 18, 2019
The fix will be available in https://code.visualstudio.com/insiders/ until next month's release.