Skip to content

Instantly share code, notes, and snippets.

@JeffMill
Last active August 2, 2023 22:38
Show Gist options
  • Save JeffMill/8426b3a995b9a97c254b5dc12b775a49 to your computer and use it in GitHub Desktop.
Save JeffMill/8426b3a995b9a97c254b5dc12b775a49 to your computer and use it in GitHub Desktop.
Edit all open git files in a new vscode instance
& "$env:LocalAppData\Programs\Microsoft VS Code\bin\code.cmd" --new-window $(git diff --name-only --diff-filter=d HEAD | ForEach-Object { Join-Path (git rev-parse --show-toplevel) $_ })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment