How to configure VScode as default editor for Git git config --global core.editor "code --wait" The parameter --wait (-w) is to wait for window to be closed before returning.