1
0

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 5 years have passed since last update.

Visual Studio Codeをコマンドにより起動する

Last updated at Posted at 2019-12-30

前提知識として

ターミナルでcode .を叩くとそのディレクトリ以下のコードがVScodeで起動できる

問題

code .とコマンドを打つと-bash: code: command not foundとなってしまう。

解決方法

  1. Visual Studio Code上でcmd+shift+p
    スクリーンショット 2019-12-30 17.18.29.png
  2. "Shell Command: Install 'code' command in PATH"を選択
    スクリーンショット 2019-12-30 17.18.19.png

Shell command 'code' successfully installed in PATH.と表示されたら設定成功

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?