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

【超簡単】visual Studio Codeをターミナルから開く方法

Posted at

はじめに

これまでvisual Studio Codeをアプリから起動していましたが、最近ターミナルからの操作が多くなってきたので、ターミナルで起動する方法について調べてみたので、簡単にまとめます。

visual Studio Codeでの操作

  1. visual Studio CodeでCommand + Shift + pを押す
    →visual Studio Codeで入力画面が出てくる

  2. 以下を入力する
    Shell Command: Install 'code' commad in PATH
    (おそらく、Shellと入力すれば、上記が出てきます)

ターミナルでの操作

まずは確認

$ code

→単純に、visual Studio Codeが開く

現在のフォルダを表示する

$ code .

→現時点のフォルダをvisual Studio Codeで開く

特定のファイルを表示する

$ code index.html

→index.htmlをvisual Studio Codeで開く

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