VS Code 터미널 셸 통합 (Windows)
발행: (2025년 12월 30일 오전 09:19 GMT+9)
2 분 소요
원문: Dev.to
Source: Dev.to
Problem
VS Code는 터미널 셸 통합이 활성화되지 않았거나 지원되지 않는 셸을 사용할 때 “The terminal is awaiting input”(터미널이 입력을 기다리고 있습니다)와 같은 메시지를 표시할 수 있습니다.
Required VS Code Settings
settings.json에 다음을 추가하십시오:
{
"terminal.integrated.shellIntegration.enabled": true,
"terminal.integrated.defaultProfile.windows": "PowerShell 7",
"terminal.integrated.profiles.windows": {
"PowerShell 7": {
"path": "C:\\Program Files\\PowerShell\\7\\pwsh.exe"
}
}
}
After Changing Settings
- 모든 터미널을 닫습니다.
- VS Code 창을 다시 로드합니다.
메시지가 계속 나타난다면, 여전히 Windows PowerShell 5.1을 사용하고 있는 것입니다. 이 버전은 셸 통합이 신뢰할 수 없습니다.
Fix (One‑time per Machine)
PowerShell 7을 설치하십시오. PowerShell 7은 VS Code 터미널 통합을 완전히 지원하며 명령/입력 감지 문제를 해결합니다.
- Microsoft Docs: https://learn.microsoft.com/powershell/scripting/install/installing-powershell-core-on-windows
- 또는 winget을 통해 설치:
winget install Microsoft.PowerShell