how to set git default editor to vscode on mac code example Example: change git default editor to vscode git config --global core.editor "code --wait"