Vscode: SCM: Support workspace diff navigation

Created on 10 Apr 2017  路  9Comments  路  Source: microsoft/vscode

  • 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
feature-request scm

Most helpful comment

Since my feature request #50434 has been closed as a duplicate I'd like to stress here that a dedicated command (with shortcut) to open the next file with changes in the currently open diff view would improve my VCS/GIT workflow tremendously!

Some additional thoughts:

  • If no diff view is open, show the Source Control panel & open a new diff editor with the first file with changes
  • If there are no more files with changes (the last one in the list is reached), either show the first one again or show some according message/toast to the user. I'd prefer the second option since it makes it a bit clearer that I've reviewed all my changes.

All 9 comments

First two:

  • #3918
  • Git commands, please use the terminal

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

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.

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.
  • 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.

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.

Since my feature request #50434 has been closed as a duplicate I'd like to stress here that a dedicated command (with shortcut) to open the next file with changes in the currently open diff view would improve my VCS/GIT workflow tremendously!

Some additional thoughts:

  • If no diff view is open, show the Source Control panel & open a new diff editor with the first file with changes
  • If there are no more files with changes (the last one in the list is reached), either show the first one again or show some according message/toast to the user. I'd prefer the second option since it makes it a bit clearer that I've reviewed all my changes.

Merging with #24916

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DovydasNavickas picture DovydasNavickas  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

mrkiley picture mrkiley  路  3Comments

chrisdias picture chrisdias  路  3Comments

v-pavanp picture v-pavanp  路  3Comments