GC-101 · Module 4

VS Code & IDE Integration

3 min read

Gemini Code Assist's agent mode in VS Code is powered by Gemini CLI under the hood. When you enable agent mode in the Gemini Code Assist extension, you get the same model capabilities, tools, and context awareness — but wrapped in VS Code's UI with inline diffs, batched tool approvals, and integrated file navigation. The CLI and IDE experiences share configuration, so your GEMINI.md and custom commands work in both.

The /ide set of commands bridges the CLI and IDE experiences. From within Gemini CLI, you can trigger IDE-specific actions — opening files, navigating to symbols, showing diffs. This is useful when you prefer the terminal for conversation but want the IDE for visual diff review.

Batched tool approvals in VS Code make the agent mode significantly faster for large operations. Instead of approving each file write individually (as you would in the terminal), VS Code presents all pending changes as a batch diff. You review the complete changeset and approve or reject it as a unit. This is especially valuable for refactors that touch many files.

Do This

  • Use VS Code agent mode for visual work — UI changes, multi-file refactors
  • Use terminal CLI for exploration, scripting, and headless automation
  • Share GEMINI.md and custom commands between both surfaces

Avoid This

  • Choose one surface exclusively — they complement each other
  • Maintain separate configurations for CLI and VS Code
  • Forget that both surfaces share the same rate limit