3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Gitのcore.editorをVS Codeにする時につまずいた事

Last updated at Posted at 2020-01-02

#目的
gitでVisual Studio Codeをデフォルトエディターとして使用したい

#設定

git config --global core.editor "code --wait"

#つまずいた点
git commit を入力すると以下の内容が返ってくる。

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'.

##原因
VS Code内にてcodeコマンドを使用する設定ができていない為。

#解決した方法
表示 > コマンドパレット を開いて、以下のコマンドを実行する。

Shell Command: Install 'Code' command in path
3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?