Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Next change through filesNew to Visual Studio Code? Get it now.
Next change through files

Next change through files

ikaman

|
2 installs
| (0) | Free
Cycle through diffs in changed files. When at the end of a file, it will automatically jump to the next file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info


logo

Next change through files

Cycle through diffs in changed files with a shortcut. When at the end of a file, it will automatically jump to the next file.


Final4

Features

  • Go to next git change: alt+z / opt+z
  • Go to previous git change: alt+a / opt+a

Other features

  • Revert selected changes and save file: alt+q / opt+q
  • Go to next changed file: ctrl+alt+z / cmd+opt+z
  • Go to previous changed file: ctrl+alt+a / cmd+opt+a

If you use Tree view

  • If you use "Tree view" in the source control (as opposed to the default List view), go to settings and check off the setting Go to next change: Tree view. That will make the changes cycle in correct order.

Settings

  • Close File After Navigation (go-to-next-change.closeFileAfterNavigation, default: off) — When disabled, regular (non-preview) tabs stay open as you navigate through changed files. Preview tabs (italic) are still replaced automatically. Enable this to restore the original behavior of closing each file after navigating away.

Bug fixes (compared to the original)

This is a fork of alfredbirk/go-to-next-change with the following fixes:

  • Navigation skipped files when cursor was on line 0 — the original extension used a falsy check (!line) which incorrectly triggered when the cursor was on the first line of a file, causing it to jump to the next file prematurely.
  • Navigation got stuck on 1-2 files on Windows — path comparison between Windows-style paths (backslashes) from the clipboard fallback and Unix-style paths from the git extension caused findIndex to return -1, resulting in the extension always jumping back to the first file.
  • Navigation wraps around — after the last changed file, navigation continues from the first file, and vice versa.

Suggestions & Issues

Suggestions and issues can be submitted on Github

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft