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.

Adding a cursor in multi-cursor mode does not scroll the window

See original GitHub issue

Describe the bug If you have a long file (longer than one window) and you add cursors with “gb”, at some point it will start selecting words that are out of the window.

To Reproduce Steps to reproduce the behavior:

  1. write a file with a lot of identical lines
foo
foo
foo
...
  1. go on a “foo”
  2. press “gb” multiple times

Expected behavior Each time I press “gb”, a new “foo” should be selected, and when a foo that is out of the window is selected, the window should scroll.

Obtained behavior The window scrolls the first time only, but when a selection is more than half a window away from the first cursor, the window will focus on the first cursor and “gb” will keep selecting things out of the window.

Environment:

  • Extension Name: vim
  • Extension Version: 0.16.1
  • OS Version: Linux x64 4.17.0-1-amd64
  • VSCode version: 1.26.0

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:10
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Kytechcommented, Jan 10, 2019

I’m having the same issue and it seems to be affecting the process of manually adding multiple cursors by Alt+Clicking to add a cursor as well. When I attempt to add an additional cursor that requires scrolling out of view of the first cursor, the screen jumps back to the first cursor when I click, but the cursor is placed after the screen moves, placing it close to the first cursor, making it impossible to place the cursor where I want it to be.

Installation Details: Windows 10 version 1803 VSCode 1.30.2 Extension Version 1.0.1

1reaction
ghostcommented, Jun 2, 2020

I suppose it’s fixed, because in 1.14.5 it works as expected, at least on Windows 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code tips — Adding multiple cursors using the mouse
Your browser can't play this video. Learn more. Switch camera.
Read more >
Multi cursor does not scroll view · Issue #31669 · microsoft/vscode ...
Steps to Reproduce: Open a file containing enough lines to scroll; Add some cursors. move cursors out of the top or bottom of...
Read more >
Multiple cursors and selection ranges | IntelliJ IDEA ...
Learn how to work with multiple carets (cursors) and multiple selection ranges (non-contiguous selection) in IntelliJ IDEA.
Read more >
How can you create multiple cursors in Visual Studio Code
Press Alt and click. This works on Windows and Linux*, and it should work on Mac, too. More multi-cursor features are now available...
Read more >
multiple-cursors - NonGNU ELPA
You can scroll the screen to center on each cursor with `C-v` and `M-v`. - Try pressing `mc/mark-next-like-this` with no region selected. It...
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