You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please improve the source control view by making it searchable, folder-wise grouping, bulk select.
Allowing to write git commands right there would be great.
Keyboard shortcuts to navigate through changed files
Reacted by Lennart, rphilipp64, Andy Gardner, Sam Gottfried, Oscar Morante, Daniel Morgenstern, Stian Selnes, Oleksandr Shlinchak, Josiah, anton-z-s and 106 more
changed the title [-]Provide keyboard shortcuts to navigate through changed files[/-][+]Provide keyboard shortcuts to navigate through changes[/+]on Apr 10, 2017
Please add this. I'd like to be able to browse my changes in VSCode, but without shortcuts to move up and down through the changes, it is too slow so I have to use git diff instead, which is less pretty, but allows me to look through my changes faster.
Reacted by Darren Cook, Alireza Zerafati, Tyler C Laprade, CFA and mroy-seedbox
Ability to select more than one file at a time and staging/un-staging (a checkbox on the left side with range selecting similar to the way multiple selections work on gmail/outlook, or the way it works on SourceTree)
click and select a file and use arrow keys to select next/previous - update diff view based on current selected file
At least if same feature as File Status on SourceTree is implemented, it will be great.
The side-by-side diff screen is very nice, but it is slow having to click each difference in the right margin. I was going to suggest F3/Shift-F3 (i.e. "editor.action.nextMatchFindAction") to move up and down the list of them (i.e. on the assumption people don't use search while also in a diff screen). But I did just find F7 ("Go to Next Difference (F7) and Go to Previous Difference (Shift+F7)") to move through them, but it only works for the inline diff view.
So, I'd suggest those same key presses be made available for the side-by-side view, too.
I tried using F8 and F7 today as I normally do in other diff viewers which did work but unfortunately I may found an issue which appears to have locked VSCode to using inline mode for showing changes. Unable to get it to switch back now even after selecting the side by side option in the menu.
I'm trying to switch from IntelliJ to VSCode and this is a crucial feature, especially after a massive refactoring affecting dozens of files. It's so simple in Intellij with a single F7 iterating through all changes in all files without mouse involvement. All we need is the logic described in an earlier comment.
Reacted by Layton Miller, Tyler C Laprade, CFA, monnef, Chen Oppenhaim and rohit-niural
I was able to create another shortcut for moving up and down the file list in diff editor. Here are the steps:
Install "macros" extension by geddski
add this macro shortcut to settings.json "macros": { "nextFile": ["workbench.view.scm", "list.focusDown", "list.select"], "previousFile": ["workbench.view.scm", "list.focusUp", "list.select"] },
Add the shortcuts in keybindings.json for the new macros { "key": "cmd+ctrl+down", "command": "macros.nextFile", }, { "key": "cmd+ctrl+up", "command": "macros.previousFile", },
When there's no item selected in the SCM files list, the focus stays in the commit input field and no file is selected
When tree view mode is active, this does not work at all, since list.focusDown/Up does not select the next/prev file but collapses/expands folders instead if the next/prev file is not within the same folder
Any idea if those issues could be fixed as well somehow? I looked through the available actions and have not found anything so far.
Both of those issues are just minor, acceptable inconveniences to me. I'm only using the tree mode sporadically.
I have made a VSCode extension to solve this problem. Feel free to use it until VSCode adds native support for it.
It cycles through diffs in changed files with a shortcut. When at the end of a file, it will automatically jump to the next file.
Reacted by Yuriy Mann, Benjamin Golinvaux, Oleksii Varlamov, Chulap, Iker Romero and rohit-niural
Reacted by HAR, Benjamin Golinvaux, Iker Romero and Noah Provenzano
Reacted by HAR, Malte Finsterwalder, andrej-herich-artin, Andrii Oriekhov, Benjamin Golinvaux, Guilherme Quentel Melo, Tyler C Laprade, CFA, monnef and Iker Romero
Reacted by HAR, Arthur Moura Carvalho, Azarattum, Benjamin Golinvaux, Kirill Müller, Martin Löper, Iker Romero and harduino
I have made a VSCode extension to solve this problem. Feel free to use it until VSCode adds native support for it.
It cycles through diffs in changed files with a shortcut. When at the end of a file, it will automatically jump to the next file.
Just installed it but unfortunately it didn't work on the latest VSCode. Please let me know if any additional settings required.
Open an issue here and I can help, so we don't spam this topic.
I don't know what happened during the first install, but after reinstallation it just worked. Sorry for inconvenience
Honestly the only thing I want is to be able to cycle through all changes across all files with my key command. In webstorm it was easy and now it's hard to leave without
Reacted by Yuriy Mann, misabiko, HAR, Tyler C Laprade, CFA, Chulap, Jinwook Jeong (Edgar), Lewis Bowes, Andrii Oriekhov, Stephen Driffill, Frank Lin and 4 more
Reacted by Tyler C Laprade, CFA, Lewis Bowes and Frank Lin
Activity
[-]Improve Source Control tab[/-][+]Provide keyboard shortcuts to navigate through changed files[/+]joaomoreno commentedon Apr 10, 2017
First two:
[-]Provide keyboard shortcuts to navigate through changed files[/-][+]Provide keyboard shortcuts to navigate through changes[/+]cristianhosu commentedon May 6, 2017
With a little bit more details I could take this one.
kevinjreece commentedon May 10, 2017
Please add this. I'd like to be able to browse my changes in VSCode, but without shortcuts to move up and down through the changes, it is too slow so I have to use
git diffinstead, which is less pretty, but allows me to look through my changes faster.amithegde commentedon May 28, 2017
Adding some details:
File Statuson SourceTree is implemented, it will be great.amithegde commentedon May 28, 2017
+and revert buttons are too tiny and if there are lot of files (say 50+) modified, clicking on+doesn't work at times.DarrenCook commentedon Sep 24, 2017
The side-by-side diff screen is very nice, but it is slow having to click each difference in the right margin. I was going to suggest F3/Shift-F3 (i.e. "editor.action.nextMatchFindAction") to move up and down the list of them (i.e. on the assumption people don't use search while also in a diff screen). But I did just find F7 ("Go to Next Difference (F7) and Go to Previous Difference (Shift+F7)") to move through them, but it only works for the inline diff view.
So, I'd suggest those same key presses be made available for the side-by-side view, too.
jpierson commentedon Oct 26, 2017
I tried using F8 and F7 today as I normally do in other diff viewers which did work but unfortunately I may found an issue which appears to have locked VSCode to using inline mode for showing changes. Unable to get it to switch back now even after selecting the side by side option in the menu.
23 remaining items
yurymann commentedon May 6, 2023
I'm trying to switch from IntelliJ to VSCode and this is a crucial feature, especially after a massive refactoring affecting dozens of files. It's so simple in Intellij with a single F7 iterating through all changes in all files without mouse involvement. All we need is the logic described in an earlier comment.
starball5 commentedon Jun 15, 2023
Related on Stack Overflow: How can I cycle through all source control changes in a VS Code workspace?
MDoder97 commentedon Aug 9, 2023
I was able to create another shortcut for moving up and down the file list in diff editor. Here are the steps:
"macros": { "nextFile": ["workbench.view.scm", "list.focusDown", "list.select"], "previousFile": ["workbench.view.scm", "list.focusUp", "list.select"] },{ "key": "cmd+ctrl+down", "command": "macros.nextFile", }, { "key": "cmd+ctrl+up", "command": "macros.previousFile", },This works well enough for me.
starball5 commentedon Aug 9, 2023
MDoder97 I created a no-extension-required version of your partial workaround in https://stackoverflow.com/a/76485588/11107541
CombeeMike commentedon Aug 10, 2023
MDoder97 starball (@starball5)
Very nice workarounds which also work well enough for me 👌.
I'm only having 2 minor issues with those macros:
list.focusDown/Updoes not select the next/prev file but collapses/expands folders instead if the next/prev file is not within the same folderAny idea if those issues could be fixed as well somehow? I looked through the available actions and have not found anything so far.
Both of those issues are just minor, acceptable inconveniences to me. I'm only using the tree mode sporadically.
dodalovicgran commentedon Aug 13, 2023
This should be copied from IntelliJ. I would like to have a shortcut that helps me advanced to a next file once current diffs in the file are complete
alfredbirk commentedon Oct 30, 2023
I have made a VSCode extension to solve this problem. Feel free to use it until VSCode adds native support for it.
It cycles through diffs in changed files with a shortcut. When at the end of a file, it will automatically jump to the next file.
ivan-education commentedon Nov 20, 2023
I don't know what happened during the first install, but after reinstallation it just worked. Sorry for inconvenience
[-]SCM: Support workspace diff navigation[/-][+]SCM - Support workspace diff navigation[/+]ShacharHarshuv commentedon Mar 20, 2025
Honestly the only thing I want is to be able to cycle through all changes across all files with my key command. In webstorm it was easy and now it's hard to leave without
mroy-seedbox commentedon Sep 25, 2025
There is an open issue specifically for the keyboard navigation here:
milik22 commentedon Sep 25, 2025
UQBt3viWCaTX0VbFyRXP58B50z2G_JAAb95GH9D3NTZzOPDs