Skip to content

Instantly share code, notes, and snippets.

@Teddybiers
Last active April 12, 2017 04:41
Show Gist options
  • Save Teddybiers/18e5091e14b781d1ad5f02df8756f0b4 to your computer and use it in GitHub Desktop.
Save Teddybiers/18e5091e14b781d1ad5f02df8756f0b4 to your computer and use it in GitHub Desktop.
Set Visual Studio Code as a Git core editor
First of all, you have to install Visual Studio Command Line Tool by
To install Visual Studio Command Line Tool is press
⌘ + ^ + p and type "Install 'code' command in PATH"
- Restart your shell if you use Mac Terminal or iTerm2
or
- Restart your Visual Studio Code if you user Terminal in Visual Studio Code
After that, run "code --version" on your shell and see the result.
> 1.11.1
> d9484d12b38879b7f4cdd1150efeb2fd2c1fbf39
It's time to change your git global editor by type:
git config --global core.editor "code --wait"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment