Skip to content

SCM - Support workspace diff navigation #24389

Open

Description

@amithegde
  • 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

Activity

  1. changed the title [-]Improve Source Control tab[/-] [+]Provide keyboard shortcuts to navigate through changed files[/+] on Apr 10, 2017
  2. joaomoreno commented on Apr 10, 2017

    @joaomoreno
    Contributor

    First two:

  3. added
    feature-request
    git
    on Apr 10, 2017
  4. changed the title [-]Provide keyboard shortcuts to navigate through changed files[/-] [+]Provide keyboard shortcuts to navigate through changes[/+] on Apr 10, 2017
  5. added
    help wanted
    on Apr 25, 2017
  6. cristianhosu commented on May 6, 2017

    @cristianhosu
    Contributor

    With a little bit more details I could take this one.

  7. kevinjreece commented on May 10, 2017

    @kevinjreece

    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.

  8. amithegde commented on May 28, 2017

    @amithegde
    Author

    Adding some details:

    • A text box to filter staged/un-staged files
    • 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.
  9. amithegde commented on May 28, 2017

    @amithegde
    Author
    • Keyboard shortcut to Stage/un-stage currently selected files
    • As of now the + and revert buttons are too tiny and if there are lot of files (say 50+) modified, clicking on + doesn't work at times.
  10. DarrenCook commented on Sep 24, 2017

    @DarrenCook

    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.

  11. jpierson commented on Oct 26, 2017

    @jpierson

    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.

  12. 23 remaining items

  13. yurymann commented on May 6, 2023

    @yurymann

    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.

  14. starball5 commented on Jun 15, 2023

    @starball5
  15. MDoder97 commented on Aug 9, 2023

    @MDoder97

    I was able to create another shortcut for moving up and down the file list in diff editor. Here are the steps:

    1. Install "macros" extension by geddski
    2. add this macro shortcut to settings.json
      "macros": { "nextFile": ["workbench.view.scm", "list.focusDown", "list.select"], "previousFile": ["workbench.view.scm", "list.focusUp", "list.select"] },
    3. Add the shortcuts in keybindings.json for the new macros
      { "key": "cmd+ctrl+down", "command": "macros.nextFile", }, { "key": "cmd+ctrl+up", "command": "macros.previousFile", },
    4. Add your own shortcuts

    This works well enough for me.

  16. starball5 commented on Aug 9, 2023

    @starball5
  17. CombeeMike commented on Aug 10, 2023

    @CombeeMike

    MDoder97 starball (@starball5)
    Very nice workarounds which also work well enough for me 👌.

    I'm only having 2 minor issues with those macros:

    1. When there's no item selected in the SCM files list, the focus stays in the commit input field and no file is selected
    2. 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.

  18. dodalovicgran commented on Aug 13, 2023

    @dodalovicgran

    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

  19. alfredbirk commented on Oct 30, 2023

    @alfredbirk

    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.

  20. ivan-education commented on Nov 20, 2023

    @ivan-education

    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

  21. changed the title [-]SCM: Support workspace diff navigation[/-] [+]SCM - Support workspace diff navigation[/+] on Dec 10, 2024
  22. ShacharHarshuv commented on Mar 20, 2025

    @ShacharHarshuv

    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

  23. mroy-seedbox commented on Sep 25, 2025

    @mroy-seedbox

    There is an open issue specifically for the keyboard navigation here:

  24. milik22 commented on Sep 25, 2025

    @milik22

    UQBt3viWCaTX0VbFyRXP58B50z2G_JAAb95GH9D3NTZzOPDs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestscm

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions