Adding a cursor in multi-cursor mode does not scroll the window
See original GitHub issueDescribe 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:
- write a file with a lot of identical lines
foo
foo
foo
...
- go on a “foo”
- 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:
- Created 5 years ago
- Reactions:10
- Comments:13 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
I suppose it’s fixed, because in 1.14.5 it works as expected, at least on Windows 🎉