microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.97k stars 29.19k forks source link

Remove the strict bounds on "Jump to line" and allow overflow to jump to the end of a file. #176417

Open Shaptic opened 1 year ago

Shaptic commented 1 year ago

Feature Request: Jumping to a line (Ctrl+G) should not be bounded by the size of the file.

For example, jumping to line 1234 in a 1000 line file should jump to the last line rather than doing nothing, and jumping to line 0 should be the same thing as jumping to line 1.

This makes it easier to jump to the beginning and end of a file. Sometimes you don't care how large a file is and want to jump "somewhere near the end." I know that Ctrl+Home and Ctrl+End already achieve this goal, but having that functionality in a single shortcut is more ergonomic. This is also how it's done by Sublime Text, so there's admittedly some muscle memory there.

bpasero commented 1 year ago

cc @TylerLeonhardt

vscodenpa commented 1 year ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!