VSCode에서 터미널 Git Bash 추가

 

Git , vscode를 설치 했다는 가정에서 시작합니다
1. Git Bash 설치 경로에서 git-bash.exe 파일을 확인 합니다

 

2. Ctrl + Shift + P를 눌러 Command Palette를 엽니다.
설정 파일 열기:
Command Palette에 Preferences: Open User Settings (JSON)을 입력하고 선택합니다.

이 옵션을 선택하면 사용자 설정 파일이 열립니다.
터미널 프로필 추가: 사용자 설정 파일에 다음 내용을 추가합니다:

    "terminal.integrated.profiles.windows": {
        "Git Bash": {
            "source": "Git Bash",
            "path": [
                "Z:\\utils\\Git-2\\bin\\bash.exe"
            ]
        }
    },
    "terminal.integrated.defaultProfile.windows": "Git Bash"

 

"Z:\\utils\\Git-2\\bin\\bash.exe" 는 git이 설치된 폴더의 bin에 있습니다 경로는 설치된 환경에 맞추세요

아래와같이 추가 합니다

{
    "editor.fontFamily": "D2coding,Consolas, 'Courier New', monospace",
    "php.validate.executablePath": "",
    "editor.fontSize": 16,
    "diffEditor.hideUnchangedRegions.enabled": true,
    "liveServer.settings.donotShowInfoMsg": true,
    "terminal.integrated.profiles.windows": {
        "Git Bash": {
            "source": "Git Bash",
            "path": [
                "Z:\\utils\\Git-2\\bin\\bash.exe"
            ]
        }
    },
    "terminal.integrated.defaultProfile.windows": "Git Bash"
    // "terminal.integrated.defaultProfile.windows": "PowerShell"
}