I want to configure my default git editor to Visual Studio Code, but I get the following error after configure it and then use it:
username ~ $ git config --global core.editor "code --wait"
username ~ $ git config --global -e
hint: Waiting for your editor to close the file... code --wait: code: command not found
error: There was a problem with the editor 'code --wait'.
I have no idea how to fix it... Do you know how I could do it?
Thanks!!