how to set default editor in git for visual studio code code example Example: change git default editor to vscode git config --global core.editor "code --wait"