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?

Git Bash を VSCode のターミナルに設定する方法(Windows)

Posted at

設定方法をCopilotに聞いたので、メモしておきます。

① Git Bash をインストール

まずは Git for Windows をインストールしておいてね。これで Git Bash が使えるようになるよ。

② VSCode の設定を開く

  • Ctrl + , で設定画面を開く
    または
  • File > Preferences > Settings から開く

③ デフォルトターミナルを変更

  • 設定画面の検索欄に
    Terminal > Integrated > Default Profile: Windows
    と入力
  • プルダウンから Git Bash を選択

これで、VSCode のターミナルを開いたときに Git Bash が使われるようになるよ!

C:\Program Files\Git\bin\bash.exe を使うのが正解で、git-bash.exe を指定すると別ウィンドウが開いてしまうので注意!


🧪 ターミナル起動のショートカット

  • Ctrl + Shift + ':新しいターミナルを開く
  • Ctrl + Shift + 5:同じグループ内に新しいターミナルを追加
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?