Skip to content

Instantly share code, notes, and snippets.

@petercamfield petercamfield/.bashrc
Last active Oct 4, 2019

Embed
What would you like to do?
Open all files listed by git diff in Visual Studio
alias vsd='"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.exe" //edit $(git diff --name-only)'
@petercamfield

This comment has been minimized.

Copy link
Owner Author

petercamfield commented Oct 3, 2019

Useful for giving files the once over in Visual Studio prior to committing

  • Simple to open only modified or added files by substituting diff command to git diff --name-only --diff-filter=AM
  • Simple to open only staged files by substituting diff command to git diff --name-only --staged
  • Simple to open any other programme instead of VS 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.