microsoft / microsoft/vscode

Ctrl+A + Esc scrolls to bottom of file

Open
#329,765 0 comments 0 reactions 1 assignee Claimed by @hediet View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

When selecting all text with `Cmd+A` and then pressing Esc to clear the selection, the editor scrolls to the cursor position at the bottom of the file.

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

VS Code Version: 1.132.0
OS Version: Sonoma 14.0 (23A344)

Steps to reproduce:

1. Open any file with content longer than the viewport
2. Place cursor somewhere in the middle or top of the file
3. Press Ctrl+A to select all
4. Press Esc to clear selection

Expected: stay in place.

https://github.com/user-attachments/assets/54be7b95-82bd-43b5-ab63-632277519f76

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.