Originally published on PEAKIQ
Source: https://www.peakiq.in/blog/enable-terminal-suggestions-in-vscode-boost-developer-productivity
Unlock VSCode Terminal IntelliSense
Requires: VSCode 1.90+ · Shell Integration enabled
Your terminal just got smarter. VSCode's integrated terminal now ships with context-aware IntelliSense — auto-suggestions for commands, file paths, git branches, npm packages, and CLI arguments, all as you type. It's one setting flip away.
What You Get
Once enabled, the terminal becomes genuinely intelligent:
| Workflow | Before | After |
|---|---|---|
| Switch git branch | Type full branch name |
git co → Tab through branches |
| Navigate dirs | Type full path |
cd src/com → Tab-complete |
| Install packages | Remember package name |
npm i → Suggestions from package.json
|
| Recall commands | ↑ scroll through history |
Ctrl+Alt+R smart history picker |
Quick Enable
Follow these four steps to activate terminal suggestions immediately:
-
Open VSCode Settings — Press
Ctrl+,(Windows/Linux) orCmd+,(macOS). -
Search for the setting — Type
terminal integrated suggestin the search bar. - Enable the toggle — Check Terminal › Integrated: Suggest: Enabled.
-
Restart your terminal — Open a new terminal with
Ctrl+Shift+`or run Developer: Reload Window.
Tip: You can also add
"terminal.integrated.suggest.enabled": truedirectly to yoursettings.jsonfor instant effect.
Advanced Configuration
Fine-tune the behavior with these settings in your settings.json:
{
"terminal.integrated.suggest.enabled": true,
"terminal.integrated.suggest.quickSuggestions": true,
"terminal.integrated.suggest.suggestOnTriggerCharacters": true,
"terminal.integrated.suggest.selectionMode": "insertItem"
}
What each option does:
-
quickSuggestions— Auto-shows suggestions based on what you've typed, no manual trigger needed. -
suggestOnTriggerCharacters— Fires on-,/, and Space — key moments in command building. -
selectionMode: "insertItem"— Tab inserts the suggestion inline. Use"selectItem"to fully replace the token. -
runOnEnter— Execute the accepted suggestion immediately with Enter, not just Tab. -
upArrowNavigatesHistory— Setfalseto use ↑ for shell history instead of cycling the suggestion list.
Shell Integration Setup
Terminal IntelliSense depends on shell integration — VSCode's mechanism for detecting command boundaries and exit codes. Without it, suggestions are limited.
Automatic (Recommended)
Shell integration activates automatically for bash, zsh, fish, pwsh, and Git Bash when launched from VSCode. Ensure this is enabled:
{
"terminal.integrated.shellIntegration.enabled": true
}
Verify: Hover over a terminal tab. If it shows "Rich", shell integration is fully active and IntelliSense is at maximum capability.
Manual (for complex setups)
For custom dotfiles, remote environments, or niche shells, inject the integration script manually.
bash / zsh — add to ~/.bashrc or ~/.zshrc:
[[ "$TERM_PROGRAM" == "vscode" ]] && \
. "$(code --locate-shell-integration-path bash)"
fish — add to ~/.config/fish/config.fish:
string match -q "$TERM_PROGRAM" "vscode"
and . (code --locate-shell-integration-path fish)
PowerShell — add to $PROFILE:
if ($env:TERM_PROGRAM -eq "vscode") {
. "$(code --locate-shell-integration-path pwsh)"
}
Power Workflows
Once active, these patterns become second nature:
Git branch navigation
git checkout # Tab → shows all local/remote branches
git co feat # Tab → filters to branches starting with "feat"
Directory traversal
cd src/comp # Tab → completes to src/components/
ls ../con # Tab → resolves relative paths instantly
npm workflows
npm run # Tab → lists scripts from package.json
npm install r # Tab → suggests installed packages matching "r"
Keyboard shortcuts
| Shortcut | Action |
|---|---|
Tab |
Accept suggestion |
Ctrl+Space |
Force-open suggestions anywhere |
Ctrl+Alt+R |
Smart history picker with fuzzy search |
Troubleshooting
No suggestions appearing?
- Confirm
terminal.integrated.suggest.enabledistrue. - Hover the terminal tab — it must show "Rich", not "Basic".
- Run Terminal: Clear Suggest Cached Globals from the Command Palette.
- Reload:
Ctrl+Shift+P→ Developer: Reload Window.
Suggestions are wrong or stale?
- Run Terminal: Clear Suggest Cached Globals to wipe the index.
- Check for conflicting completions in your
~/.bashrcor~/.zshrc.
Shell integration not activating?
- Make sure the terminal is launched from VSCode, not attached externally.
- For WSL, SSH, or Dev Containers, use the manual script injection above.
- Minimum versions: VSCode 1.77+ for shell integration, 1.90+ for IntelliSense.
Windows + Git Bash: Verify Git is on your PATH. Run
code --locate-shell-integration-path bashin an external terminal to confirm the path resolves correctly.
Summary
VSCode Terminal IntelliSense is a low-friction, high-impact upgrade. One setting, one restart, and your terminal starts completing branches, paths, and package names the way your editor already does for code.
Enable it, confirm shell integration shows Rich, and let Tab do more of the work.
Top comments (0)