New: Earn 20% as an Agensi affiliate. Join now →

    Guides
    claude-code
    vs-code
    vscode

    How to Use Claude Code in VS Code: Complete Setup Guide (2026)

    Claude Code runs in VS Code's integrated terminal. Here is how to set it up, configure workspace settings, and install skills for better output.

    July 23, 20265 min read
    Share:

    Claude Code runs in VS Code's integrated terminal. Here is how to set it up, configure workspace settings, and install skills for better output.

    Quick Answer: Install Claude Code globally with npm install -g @anthropic-ai/claude-code. Open VS Code, press Ctrl+to open the integrated terminal, typeclaude`, and start coding. Claude Code reads your open workspace, understands your project structure, and has full access to the VS Code terminal. No extension needed.

    How does Claude Code work in VS Code?

    Claude Code is a terminal application, not a VS Code extension. You run it in VS Code's integrated terminal. This means it has access to everything the terminal has: your filesystem, git, environment variables, and any CLI tools you have installed.

    The advantage of running in VS Code's terminal versus a standalone terminal: you see Claude's output alongside your code. When Claude edits a file, VS Code's file watcher picks up the change immediately. You can review diffs in VS Code's built-in git tools.

    How do I install Claude Code for VS Code?

    If you have not installed Claude Code yet:

    npm install -g @anthropic-ai/claude-code
    

    This installs the claude command globally. You need Node.js 18+ and a claude.ai Pro or Max subscription.

    How do I open Claude Code in VS Code?

    Open your project in VS Code. Press Ctrl+` (backtick) to open the integrated terminal. Type:

    claude
    

    Claude Code starts, reads your workspace, and is ready for instructions. It automatically detects your project structure, language, framework, and existing tests.

    How do I configure workspace-specific settings?

    Create a .claude/settings.json in your project root to configure Claude Code for this specific workspace. Settings include: permitted tools, auto-approve patterns, and default permission mode.

    Create a CLAUDE.md file in your project root to give Claude context about your codebase: architecture decisions, coding conventions, and team standards. Claude reads this at session startup.

    How do I install skills for better output?

    Skills customize Claude Code's behavior. Without skills, you get generic output. With skills, Claude follows specific conventions for code review, commits, testing, and documentation.

    Install skills in your global skills directory:

    ~/.claude/skills/
    ├── code-reviewer/
    │   └── SKILL.md
    ├── git-commit-writer/
    │   └── SKILL.md
    

    Or in your project's local skills directory for project-specific skills.

    The most used skills:

    code-reviewer (764 uses) reviews code for bugs, security, and style. Free.

    git-commit-writer (232 uses) writes conventional commit messages. Free.

    readme-generator (117 uses) generates README files. Free.

    Browse all Claude Code skills on Agensi.

    What are the best tips for the VS Code integration?

    Use VS Code's split terminal to run Claude Code in one pane and your regular terminal in another.

    Use Plan Mode (Shift+Tab twice) for complex refactors so you can review the plan in your terminal before Claude starts editing files.

    Use VS Code's source control panel to review all changes Claude made before committing.

    Frequently Asked Questions

    No. Claude Code is a terminal application. You run it in VS Code's integrated terminal. No extension installation needed.

    No. Just install Claude Code globally with npm and run it in VS Code's terminal. VS Code does not need any configuration.

    Yes, but not in the same workspace simultaneously. Both agents may try to modify the same files. Use one at a time.

    Yes. Skills load from your skills directory regardless of whether you run Claude Code in VS Code's terminal or a standalone terminal.

    Claude Code runs in the terminal and uses Claude's native capabilities. Roo Code is a VS Code extension with its own UI, multi-model support, and different workflow. Both support SKILL.md skills.

    Yes. Press Shift+Tab twice or type /plan. Plan Mode works the same in VS Code's terminal as in any other terminal.