Pressing `shift-left/right` will exit multi-caret mode
See original GitHub issueWhen multiple carets are inserted, no matter with or without selections, pressing shift-left
or shift-right
exits the multi-caret mode (in some cases), and selecting texts only under the first caret, instead of initiate(or adjust) text selections for every caret.
Scenario:
- If entered multi-caret mode with
shift+up/down
, then text selection works fine.- If carets are moved in any direction after (this would deselect texts under all carets, but keep all the carets in place, if any text previously selected), then selection failed to initiate/being adjusted correctly.
- If multiple carets are inserted by mouse clicking (holding
alt
) orcolumn selection mode
, selection failed to initiate correctly. shift-end/home
works fine in both situation, but after that, pressingshift-left/right
exits the multi-caret mode, and deselects texts under all other carets.- will exit multiple selection mode initiated by
ctrl-d
(named “Add selection to next find match”), too.
<del>As i remembered, there was a time when i could adjust multiple text selections simultaneously/synchronized.</del> (confirmed: that is PyCharm instead of vscode)
It seems adjusting multiple selection will only work when all carets are “aligned” and “not modified yet”, at present. Would this be a bug?
Also: move lines up and down
does not work under multi-caret mode either, but this seems unrelated to this issue (i’m too lazy to submit this in a new issue).
======================
Tested: behaves exactly the same when all extensions are disabled.
======================
Version: 1.51.1 Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f Date: 2020-11-10T23:31:29.624Z (3 wks ago) Electron: 9.3.3 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Linux x64 4.15.0-23-generic (note: Ubuntu 16.04)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top GitHub Comments
CursorLeftSelect
is the regularshift+left
that can result that multiple cursors become “unaligned” e.g.CursorColumnSelectLeft
is only bound by default on Windows I believe and makes sure the result is a “column” selection (i.e. box selection). It also does not loop back to the end of the previous line, etc.@alexdima What is the difference between
CursorColumnSelectLeft
andCursorLeftSelect
?ColumnSelectCommand
does not seem to be multi-cursor ready (it only uses primary cursor).