microsoft / vscode

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

Git: Open changes with previous/next revision #228802

Open thernstig opened 1 month ago

thernstig commented 1 month ago

GitLens has a nice feature to jump between diffs for a file for the previous/next revision. For example (when using GitLens' alternate keymap) one can press alt+, to jump to the previous revision, and alt+. to jump to the next revision.

This makes it easy to get a diff for the current file for a few iterations back. I use it all the time to find buggy code when I suspect a change has been made a in a file that introduced a bug.

GitLens is extremely intrusive. I wish to use a built-in command instead (with maybe the same default keybindings as above).

Example

https://github.com/user-attachments/assets/919fc607-e5f3-4368-9777-770590923c7f

lszomoru commented 1 month ago

/gifPlease

vs-code-engineering[bot] commented 1 month ago

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.

Happy coding!

vs-code-engineering[bot] commented 1 month 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!

thernstig commented 1 month ago

@lszomoru added a video, as requested.