VS Code Terminal Shell Integration (Windows)
Source: Dev.to
To avoid “The terminal is awaiting input” and similar prompts, VS Code needs Terminal Shell Integration enabled and a supported shell. Problem:
If you see “The terminal is awaiting input” or similar prompts, VS Code needs Terminal Shell Integration enabled and a supported shell. Required VS Code settings (settings.json): After changing settings: Still seeing the message?
You are likely using Windows PowerShell 5.1, which has unreliable shell integration. Fix (one-time per machine): Install PowerShell 7: PowerShell 7 fully supports VS Code terminal integration and resolves command/input detection issues. Templates let you quickly answer FAQs or store snippets for re-use. Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse CODE_BLOCK:
{ "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" } }
} Enter fullscreen mode Exit fullscreen mode CODE_BLOCK:
{ "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" } }
} CODE_BLOCK:
{ "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" } }
} CODE_BLOCK:
winget install Microsoft.PowerShell CODE_BLOCK:
winget install Microsoft.PowerShell - Close all terminals
- Reload VS Code window - Install PowerShell 7: Microsoft Docs Or run: winget install Microsoft.PowerShell
- Microsoft Docs
- Or run: winget install Microsoft.PowerShell - Microsoft Docs
- Or run: winget install Microsoft.PowerShell