question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pressing `shift-left/right` will exit multi-caret mode

See original GitHub issue

When 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) or column selection mode, selection failed to initiate correctly.
  • shift-end/home works fine in both situation, but after that, pressing shift-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:open
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alexdimacommented, Oct 28, 2021

CursorLeftSelect is the regular shift+left that can result that multiple cursors become “unaligned” e.g. image

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. image

0reactions
hedietcommented, Oct 28, 2021

@alexdima What is the difference between CursorColumnSelectLeft and CursorLeftSelect? ColumnSelectCommand does not seem to be multi-cursor ready (it only uses primary cursor).

Read more comments on GitHub >

github_iconTop Results From Across the Web

URGENT HELP! How do I turn off the multiple caret thing
- to delete from the selection, press Ctrl+Shift+G. - to restore single caret mode, use Esc. Avatar.
Read more >
Multi-caret editing - UltraEdit Wiki
Multi-caret editing is not supported in column mode or hex edit mode. ... You may remove a caret from the active set by...
Read more >
IntelliJ IDEA. Helen's Take On: Using Multiple Carets - YouTube
Welcome to a new Helen's Take On video. Today I want to show you how you can make the same change in several...
Read more >
Multi-caret editing - Visual Studio for Mac - Microsoft Learn
When in multi-caret mode, you can add additional carets to your ... carets located where you would like them, stop pressing the Control...
Read more >
IntelliJ IDEA Tips & Tricks: Multiple Cursors
Sometimes it is useful to edit multiple places in the file at once, ... Pressing Esc will exit multiple cursors mode and will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found