0
1

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 1 year has passed since last update.

ターミナルからVSCodeを起動するコマンド

Posted at

はじめに

プログラミング学習中の@kat_logと申します。

ターミナルからVSCodeを起動するコマンドの共有です。

image.png

最初に設定

  1. ⇧+⌘+Pキーにてコマンドパレットを開く
  2. >Shell Commandと入力する(>はコマンドパレットを開いた時点で入力されています)
  3. Shell Command: Install 'code' command in PATHを選択し、エンター
  4. 以上で、ターミナルからcode .コマンドにてカレントディレクトリをVSCodeで開けるようになります
    image.png

ターミナルから使用

カレントディレクトリをVSCodeで開く

code .

VSCodeの拡張機能を全てオフにして開く

code --disable-extensions

VSCodeの挙動がおかしい時に、拡張機能の影響か切り分ける際の確認に便利です

image.png

(右下に、一時的に拡張機能がオフになっているメッセージが表示されます)

おわりに

お読みいただきありがとうございました。
どなたかの参考になれば嬉しいです。

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?