Skip to content

Instantly share code, notes, and snippets.

@7cc
Last active April 24, 2018 14:27
Show Gist options
  • Select an option

  • Save 7cc/8e0818b2a304c8d0680c091ca5b0bcaa to your computer and use it in GitHub Desktop.

Select an option

Save 7cc/8e0818b2a304c8d0680c091ca5b0bcaa to your computer and use it in GitHub Desktop.
use vscode as git editor on Windows

use vscode as git editor on Windows

-n = --new-window
-w = --wait

from cmd.exe

use double quotes

git config --global core.editor "code --wait"
git config --global core.editor "code -w"

git config --global core.editor 'code --wait'

resutls in

[core]
	editor = 'code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment