0

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
2
  • Can you use the command code anywhere in the terminal? Commented Apr 22, 2018 at 8:13
  • when i use the command code gives me the following message -bash: code: command not found Commented Apr 22, 2018 at 8:15

1 Answer 1

2

From the documentation

  • 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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.