11 min

How to Use Claude Code in VS Code and Cursor (2026)

To use Claude Code in VS Code, press Cmd+Shift+X (Ctrl+Shift+X on Windows and Linux), search "Claude Code", install Claude Code for VS Code by Anthropic, open a file and click the Spark icon at the top right of the editor. Sign in with a paid Claude plan or a Claude Console account, pick a mode and model, then type your request (Anthropic, November 2026).

The extension needs VS Code 1.94.0 or later, and no API key is required. The same extension installs in Cursor from the Open VSX Registry. Screenshots are from our test on November 20, 2026 (VS Code on macOS, extension 2.1.329).

How to Use Claude Code in VS Code in 6 Steps

Anthropic calls the extension "the recommended way to use Claude Code in VS Code." From the Claude Code VS Code docs:

  1. Install Claude Code for VS Code from the Extensions view.
  2. Open the panel with the Spark icon, then click Sign in.
  3. Add context: select code, or type @ and a file name.
  4. Pick a permission mode: Manual, Edit automatically, Plan or Auto.
  5. Pick a model and effort from the model chip.
  6. Send your prompt and review the diff before accepting.

You need a paid plan: Anthropic's pricing page marks Claude Code "No" for Free and says it "is included in all paid plans."

Step 1: Install the Claude Code Extension

Search "Claude Code" in the Extensions view and install the one published by Anthropic. Our results showed "Claude Code for VS Code" from Anthropic with a verified badge.

The extension page listed 30,650,108 installs and 859 ratings, Identifier anthropic.claude-code, Version 2.1.329, Size 355.50MB and the requirement "VS Code 1.94.0 or higher."

You can also click Install on the Visual Studio Marketplace web listing, which showed 30,682,461 installs on November 20, 2026.

The extension bundles its own CLI ("The extension's version number is the Claude Code version it bundles") but "does not put claude on your shell PATH." To run claude in the integrated terminal, install the standalone CLI once with our Claude Code install guide.

Step 2: Open the Claude Code Panel and Sign In

Open any file and click the Spark icon at the top right of the editor; its tooltip reads "Claude Code: Open." Anthropic notes "The icon only appears when you have a file open."

You can also use the Spark icon in the Activity Bar, the Command Palette ("Claude Code," then "Open in New Tab") or Claude Code in the status bar. The first time, "a sign-in screen appears. Click Sign in and complete authorization in your browser," and a Learn Claude Code checklist follows.

Under the prompt box sit a + button, a / commands button, the model chip ("Opus 5.5 High"), a chip for the open file (index.html), the mode ("Auto") and send. The / menu attaches files and opens commands and skills (see our Claude skills guide).

Step 3: Point Claude at Files With @-Mentions

Type @ and part of a file or folder name, and Claude reads that content. In our demo folder, "@app" suggested app.js.

  • Folders: add a trailing slash, such as @src/components/.
  • Selections: "Claude can see your highlighted code automatically." Option+K (Alt+K) inserts a reference like @file.ts#5-10.
  • Terminal output: @terminal:name, where name is the terminal's title.
  • Files and images: Shift+drag files into the prompt box, or paste an image.

Step 4: Choose a Permission Mode

Click the mode under the prompt box, or press Shift+Tab, to set how much Claude may do without asking. Auto was selected by default; Anthropic says Auto is the built-in starting mode from v2.1.283.

ModeOn-screen description (November 20, 2026)Good for
Manual"Claude will ask for approval before making each edit"Reviewing every change
Edit automatically"Claude will edit your selected text or the whole file"Small edits you check after
Plan"Claude will explore the code and present a plan before editing"Big changes
Auto (default)"Claude will approve actions that pass a safety check and pause for anything risky"Routine work

In Plan mode, "VS Code automatically opens the plan as a full Markdown document where you can add inline comments" before Claude starts.

Step 5: Pick a Model and Effort Level

Click the model chip (or type /model) to open "Select a model." Our picker listed:

  • Default (recommended): "Opus 5.5 · Best for everyday, complex tasks"
  • Fable 5.2: "For your toughest challenges." The panel warned it "draws down usage faster than Opus 5.5," and it needs v2.1.321 or later.
  • Sonnet 5.5: "Most efficient for simpler tasks"
  • Haiku 5.5: "Fastest for quick answers." Fable 5.1 and Haiku 4.5 also appeared.

The Effort row sets the effort level (ours read High); the Ultracode switch has Claude "plan a workflow for each substantive task in this session." On Pro, Fable is "paid with usage credits"; Max includes it "up to half your weekly limit" (model config docs, Claude pricing guide).

Step 6: Send a Prompt and Review the Diff

In Manual mode, Claude shows each proposed edit as a side-by-side diff and waits for your answer. We sent "Add a Clear button to index.html that resets the bill and the result."

Claude asked "Make this edit to index.html?" with 1 Yes, 2 Yes, allow all edits this session and 3 No, plus a "Tell Claude what to do instead" field.

VS Code opened a "[Claude Code] index.html" tab showing the added line <button id="clear" type="button">Clear</button>. From v2.1.275, Accept this change and Reject this change buttons sit under each change.

After we approved, Claude added a click handler in app.js and summarized both edits with clickable file names. It said the button "empties the bill field" and resets the result to Tip: $0.00, and noted "I haven't opened the page in a browser to try it."

To undo, hover a message and choose Rewind code to here.

Plan in claude.ai, build in VS Code? AI Toolbox (formerly Claude Toolbox) adds full-text search, folders and saved prompts to your claude.ai chats: 25 search results per search, 2 top-level folders with unlimited subfolders and 10 saved prompts on the free plan, Unlimited on Premium. 40,000+ users on the Chrome Web Store.

Add AI Toolbox to Chrome, free ->

How to Use Claude Code in Cursor

Cursor installs the same Claude Code for VS Code extension, which Anthropic publishes to the Open VSX Registry. Anthropic's docs offer an "Install for Cursor" link next to the VS Code one.

The Open VSX listing showed a "Preview" label and 68M downloads on November 20, 2026, at version 2.1.329. Anthropic says Pro, Max and Ultra cover "VS Code, Cursor and other VS Code forks" (Claude Help Center). We did not test inside Cursor, and Anthropic lists no Cursor-specific requirements, so Cursor's screens may differ from ours.

Claude Code in JetBrains IDEs

JetBrains IDEs use a separate plugin, still named "Claude Code [Beta]," and it needs the CLI. It "does not bundle its own copy of the CLI," so install the CLI first, then the plugin (version 0.1.14-beta, 5,078,036 downloads on November 20, 2026). It supports IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm and GoLand (JetBrains docs).

Shortcuts, Terminal Mode and Settings

A few shortcuts cover most daily use. Settings live under Cmd+, (Ctrl+,), then Extensions, Claude Code.

ActionMacWindows and Linux
Toggle focus between editor and ClaudeCmd+EscCtrl+Esc
Open a new conversation as a tabCmd+Shift+EscCtrl+Shift+Esc
Insert @-mention of file and selectionOption+KAlt+K
New line without sendingShift+EnterShift+Enter
  • macOS Tahoe: the Game Overlay shortcut uses Cmd+Esc "and intercepts the keypress before it reaches VS Code."
  • Terminal mode: "To launch Claude in the terminal instead of the graphical panel, turn on the Claude Code: Use Terminal setting."
  • Shared history: claude --resume continues an extension conversation in the terminal.

Choosing between Code, Chat and Cowork? See Claude Cowork vs Chat vs Code.

Keep Your claude.ai Coding Chats Organized

AI Toolbox works on claude.ai in your browser, not inside VS Code or Cursor. For the chats where you plan or debug, the Claude module adds:

  1. Install AI Toolbox from the Chrome Web Store and open claude.ai.
  2. File chats into Claude folders: 2 top-level folders with unlimited subfolders free.
  3. Search every message with Claude full-text search: 25 results per search free, Unlimited plus Advanced search filters on Premium.
  4. Reuse prompts from the Claude prompt library: 10 saved prompts free, inserted with //.
  5. Export a chat as TXT free, or Markdown, JSON, PDF and Web page with images on Premium (Claude export).

It adds nothing to Claude Code and does not raise Claude's limits. The same extension covers ChatGPT, Gemini and Grok.

Limitations

IDE usage "counts toward the same usage limits shared across Claude and Claude Code" (Claude usage limits). If ANTHROPIC_API_KEY is set, Claude Code uses it instead of your subscription, "resulting in API usage charges." The extension "doesn't work in Restricted Mode." Test Claude's changes yourself, especially in Auto mode. Labels reflect version 2.1.329 and may change.

Frequently Asked Questions

Is Claude Code in VS Code free?

The extension is free to install, but using it needs a paid Claude plan or a Claude Console account. Anthropic's pricing page marks Claude Code as not included on the Free plan and says it is included in all paid plans: Pro, Max, Ultra, Team and Enterprise. No separate API key is required with a subscription.

Does Claude Code work in Cursor?

Yes. Anthropic publishes Claude Code for VS Code to the Open VSX Registry, which Cursor installs extensions from, and its docs include an Install for Cursor link. Anthropic says Pro, Max and Ultra plans cover Claude Code in VS Code, Cursor and other VS Code forks, with the same shared usage limits as claude.ai.

Do I need the Claude Code CLI to use the VS Code extension?

No. The extension bundles its own copy of the CLI for the chat panel, and its version number matches the Claude Code version it bundles. It does not put claude on your shell PATH, so you need the standalone CLI install only if you want to run claude in the integrated terminal or resume chats there.

How do I stop Claude Code from editing files without asking?

Switch to Manual mode by clicking the mode at the bottom of the prompt box or pressing Shift+Tab. In Manual mode Claude asks before each file edit and most shell commands, shows a side-by-side diff in VS Code, and lets you accept, reject, or type what it should do instead. Plan mode shows a plan before any edits.

Can I use Claude Code in JetBrains IDEs?

Yes, through the Claude Code [Beta] plugin on the JetBrains Marketplace. It works with IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm and GoLand. Unlike the VS Code extension, it does not bundle the CLI, so you install the Claude Code CLI first and the plugin connects to it in the integrated terminal.

Bottom Line

Install Claude Code for VS Code, click the Spark icon, sign in with a paid plan and use @ for context. Start in Manual or Plan mode, then let Auto handle routine work. Cursor uses the same extension from Open VSX; JetBrains needs the beta plugin plus the CLI.

Related reading: ChatGPT vs Claude for coding and Claude for developers.

Sources

Last updated: November 20, 2026