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
{{ message }}
Repository navigation
[html] mirror cursor: pasting a full line will copy the full line twice #88072
bugIssue identified by VS Code Team member as probable bugeditor-synced-regionIssues related to synced region functionality in editorverifiedVerification succeeded
If I copy a full line with CTRL+C (my cursor range is empty.)
Then position my cursor on top of a starting tag, it will paste the line above the opening tag and the closing tag.
<div>
<span>Something</span></div>
Copy a line like
HELLO
Position your cursor on the opening <div>
Press CTRL+V.
Actual Results
HELLO
<div>
HELLO
<span>Something</span></div>
Expected Results
HELLO
<div>
<span>Something</span></div>
VS Code version: Code 1.41.1 (26076a4, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.18363
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)
This is the default behavior of multiple-cursor. The extra cursor is added because of html.mirrorCursorOnMatchingTag setting. You can disable it for now if you don't like it.
In tomorrow's insiders html.mirrorCursorOnMatchingTag is replaced with editor.renameOnType. The new implementation fixes this issue. You can find more details here: #88424 (comment)
bugIssue identified by VS Code Team member as probable bugeditor-synced-regionIssues related to synced region functionality in editorverifiedVerification succeeded
Activity
octref commentedon Jan 10, 2020
This is the default behavior of multiple-cursor. The extra cursor is added because of
html.mirrorCursorOnMatchingTagsetting. You can disable it for now if you don't like it.octref commentedon Mar 18, 2020
In tomorrow's insiders
html.mirrorCursorOnMatchingTagis replaced witheditor.renameOnType. The new implementation fixes this issue. You can find more details here: #88424 (comment)