LoginSignup
0
0

More than 3 years have passed since last update.

Visual Studio Code のターミナルでGit Bashで使っているコマンドを使う方法

Last updated at Posted at 2021-01-11

WindowsのVSCodeでターミナルを開いたときに、Git Bashのコマンドを使えるように設定した時のメモ。

事前準備

この設定はGitBASHを使用する前提なので、下記サイトよりインストールしておく。
https://gitforwindows.org/

設定

VSCodeのsettings.jsonに下記を追加する
(settins.jsonの開き方はこちらを参照)

settings.json
  "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\git-cmd.exe",
  "terminal.integrated.shellArgs.windows": [
    "--command=usr/bin/bash.exe",
    "-l",
    "-i"
  ]

こうすると、ターミナルはGitBashで使っているコマンドを参照するよ。となる。

参考

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