18
5

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.

Visual Studio Codeでcodeコマンドが使えない時の対処法 【-bash: code: command not found】

Posted at

Visual Studio Codeで下記のようにcodeコマンドが使えない時の対処法をまとめました。

code 
-bash: code: command not found

対処法

  • Visual Studio Codeを立ち上げコマンドパレットを開きます。(shift + command + P)
  • コマンドパレットで検索をかけ、Command: Install 'code' command in PATH commandをクリックします。
スクリーンショット 2020-04-24 10.26.40.png - インストールが終わると下記のポップアップが出ます。 スクリーンショット 2020-04-24 10.31.43.png - 最後にVisual Studio Codeを再起動すれば、codeコマンドが使えるようになります。
18
5
1

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
18
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?