Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caret lost when scrolling with Ctrl+Up / Ctrl+Down #47487

Closed
fhurta opened this issue Apr 9, 2018 · 1 comment
Closed

Caret lost when scrolling with Ctrl+Up / Ctrl+Down #47487

fhurta opened this issue Apr 9, 2018 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@fhurta
Copy link

fhurta commented Apr 9, 2018

When you scroll up with Ctrl+Up, the caret is lost when it reaches the bottom.

The current behavior is that the caret is forgotten at the original place so when you find the place to edit and continue with just the Up key, the editor jumps away to its original position and you have to find the place again with mouse or PgUp. This behavior is very annoying.

The expected behavior (as known from full Visual Studio, Notepad++ and other programmers editors) is that the caret is kept at the bottom line, so when you find the place you want to edit, you can continue to that line with just Up key.

The same bug (symmetrical) for Ctrl+Down.

  • VSCode Version: 1.22.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Open any file having more lines than fits to single page
  2. Scroll at the bottom with Ctrl+End
  3. Scroll up with Ctrl+Up

Does this issue occur when all extensions are disabled?: Yes

@vscodebot vscodebot bot added editor editor-core Editor basic functionality labels Apr 9, 2018
@alexdima
Copy link
Member

Duplicate of #2091

i.e. This can be achieved via keybindings:

    {
        "key": "ctrl+down",
        "command": "editorScroll",
        "args": {
            "to": "down",
            "by": "line",
            "revealCursor": true
        }
    },
    {
        "key": "ctrl+up",
        "command": "editorScroll",
        "args": {
            "to": "up",
            "by": "line",
            "revealCursor": true
        }
    }

I will file an issue with the VS keymap to ask for this to be included.

@alexdima alexdima added *duplicate Issue identified as a duplicate of another issue(s) and removed editor editor-core Editor basic functionality labels Apr 13, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators May 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants