Set which editor git should use.
This is the program that will open during a commit
with no -m
flag, a merge, a rebase, etc...
Select from any installed editor. Examples:
- emacs:
emacs
- vi:
vi
orvim
- atom:
atom --wait
- sublime:
subl -n -w
- vscode:
code --wait
Run:
$ $ git config --global core.editor <YOUR_EDITOR>
The vscode settings above are not enough. You need to edit the config directly and set the path to the application. See this stackoverflow. https://stackoverflow.com/a/35782566/2066978