After using the following configuration in Terminal for VSCode
git config --global core.editor "code --wait"
and trying to commit by the following command
git commit
gives me the following message
code --wait: code: command not found error: There was a problem with the editor 'code --wait'. Please supply the message using either -m or -F option.
Any idea why doesn't open the editor?
Ru Chern Chong
3,78613 gold badges36 silver badges43 bronze badges
asked Apr 22, 2018 at 8:09
P. Alexandru
3181 gold badge4 silver badges12 bronze badges
1 Answer 1
- Launch VS Code.
- Open the Command Palette (⇧⌘P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.
answered Apr 22, 2018 at 8:19
Ru Chern Chong
3,78613 gold badges36 silver badges43 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-bash
codeanywhere in the terminal?