DEV Community

Cover image for Enable VSCode Terminal IntelliSense for Faster Development
PEAKIQ
PEAKIQ

Posted on • Originally published at peakiq.in

Enable VSCode Terminal IntelliSense for Faster Development

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:

  1. Open VSCode Settings — Press Ctrl+, (Windows/Linux) or Cmd+, (macOS).
  2. Search for the setting — Type terminal integrated suggest in the search bar.
  3. Enable the toggle — Check Terminal › Integrated: Suggest: Enabled.
  4. Restart your terminal — Open a new terminal with Ctrl+Shift+` or run Developer: Reload Window.

Tip: You can also add "terminal.integrated.suggest.enabled": true directly to your settings.json for 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"
}
Enter fullscreen mode Exit fullscreen mode

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 — Set false to 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
}
Enter fullscreen mode Exit fullscreen mode

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)"
Enter fullscreen mode Exit fullscreen mode

fish — add to ~/.config/fish/config.fish:

string match -q "$TERM_PROGRAM" "vscode"
and . (code --locate-shell-integration-path fish)
Enter fullscreen mode Exit fullscreen mode

PowerShell — add to $PROFILE:

if ($env:TERM_PROGRAM -eq "vscode") {
  . "$(code --locate-shell-integration-path pwsh)"
}
Enter fullscreen mode Exit fullscreen mode

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"
Enter fullscreen mode Exit fullscreen mode

Directory traversal

cd src/comp    # Tab → completes to src/components/
ls ../con      # Tab → resolves relative paths instantly
Enter fullscreen mode Exit fullscreen mode

npm workflows

npm run        # Tab → lists scripts from package.json
npm install r  # Tab → suggests installed packages matching "r"
Enter fullscreen mode Exit fullscreen mode

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?

  1. Confirm terminal.integrated.suggest.enabled is true.
  2. Hover the terminal tab — it must show "Rich", not "Basic".
  3. Run Terminal: Clear Suggest Cached Globals from the Command Palette.
  4. Reload: Ctrl+Shift+PDeveloper: Reload Window.

Suggestions are wrong or stale?

  • Run Terminal: Clear Suggest Cached Globals to wipe the index.
  • Check for conflicting completions in your ~/.bashrc or ~/.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 bash in 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)