Reputation: 7106
Using Visual Studio Code 1.14.1, whenever I paste something into an HTML tag immediately after the tag name, it also pastes the same text into the closing tag:
This doesn't happen if I type the text manually. I've never had this problem before; is it a new "feature"? How do I turn it off?
Upvotes: 1
Views: 624
Reputation: 182441
It is the mirror cursor functionality. You can disable it by searching for this in your settings and uncheck it:
Mirror cursor on matching tag
It is enabled by default now but with v1.42 will be off by default. See https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_42.md#html-mirror-cursor-off-by-default
v1.44 is making some major changes in how the "mirror cursor" functionality works. It is now called Synced Regions . See https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_44.md#synced-regions
If you paste something into one tag it will not also be pasted into the other tag if there is a space in the text you are pasting.
Upvotes: 3