
- Review and edit Claudeâs plans before accepting them
- Auto-accept edits as theyâre made
- @-mention files with specific line ranges from your selection
- Access conversation history
- Open multiple conversations in separate tabs or windows
Prerequisites
Before installing, make sure you have:- VS Code 1.94.0 or later
- An Anthropic account: any paid Claude subscription (Pro, Max, Ultra, Team, or Enterprise) or a Claude Console account works, and no API key is required. Youâll sign in with this account when you first open the extension. For a provider like Amazon Bedrock or Google Cloudâs Agent Platform, see Use third-party providers. For a Claude apps gateway, see Sign in to a Claude apps gateway.
Install the extension
Click the link for your IDE to install directly: Or in VS Code, pressCmd+Shift+X (Mac) or Ctrl+Shift+X (Windows/Linux) to open the Extensions view, search for âClaude Codeâ, and click Install.
Extension marketplaces are third-party software, which Anthropic doesnât endorse, maintain, or audit. Anthropic submits extensions for publication to the Visual Studio Marketplace and Open VSX Registry.
- Other VS Code forks: the extension also installs in forks like Devin Desktop or Kiro. Search for âClaude Codeâ in the editorâs Extensions view, or install from the Open VSX Registry.
- Editors that canât install the extension: install the CLI and run
claudein the editorâs integrated terminal instead. The CLI works in any terminal. - Dev containers: to run Claude Code inside a dev container, see Development containers.
If the extension doesnât appear after installation, restart VS Code or run âDeveloper: Reload Windowâ from the Command Palette.
Get started
Once installed, you can start using Claude Code through the VS Code interface:1
Open the Claude Code panel
Throughout VS Code, the Spark icon indicates Claude Code: 
The quickest way to open Claude is to click the Spark icon in the Editor Toolbar (top-right corner of the editor). The icon only appears when you have a file open.
Other ways to open Claude Code:

- Activity Bar: click the Spark icon in the left sidebar to open the sessions list. Click any session to open it in your preferred location, or start a new one. This icon is always visible in the Activity Bar.
- Command Palette:
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux), type âClaude Codeâ, and select an option like âOpen in New Tabâ - Status Bar: click âŧ Claude Code in the bottom-right corner of the window. This works without an open file.
2
Sign in
The first time you open the panel, a sign-in screen appears. Choose a sign-in method and complete authorization in your browser.To use your Console account without creating an API key, select the Anthropic Console (no API key) button if the sign-in screen offers it. Requires Claude Code v2.1.324 or later.If you see Not logged in · Please run /login later, the extension reopens the sign-in screen automatically. If it doesnât appear, reload the window from the Command Palette with Developer: Reload Window.If you have
ANTHROPIC_API_KEY set in your shell but still see the sign-in prompt, VS Code may not have inherited your shell environment. Launch VS Code from a terminal with code . so it inherits your environment variables, or sign in with your Claude account instead.After you sign in, a Learn Claude Code checklist appears. Work through each item by clicking Show me, or dismiss it with the X. To reopen it later, uncheck Hide Onboarding in VS Code settings under Extensions > Claude Code.3
Send a prompt
Ask Claude to help with your code or files, whether thatâs explaining how something works, debugging an issue, or making changes.Hereâs an example of asking about a particular line in a file:

4
Review changes
Check the permission mode shown at the bottom of the prompt box:
- In Auto or Accept edits mode, Claude edits most files in your workspace without asking.
-
In Manual mode, when Claude wants to edit a file, it shows a side-by-side comparison of the original and proposed changes, then asks for permission. You can accept, reject, or tell Claude what to do instead. If you edit the proposed content directly in the diff view before accepting, Claude is told that you modified it so it doesnât assume the file matches its original proposal.

Use the prompt box
The prompt box supports several features:-
Permission modes: click the mode indicator at the bottom of the prompt box to switch permission modes. With Claude Code v2.1.283 or later, Auto is the built-in starting permission mode, and on earlier versions only on Pro, Max, Ultra, and Team plans. See how the extension chooses the starting permission mode for what changes that, and every permission mode the indicator offers.
- Auto: a classifier reviews most actions instead of asking you. See auto mode for what it reviews and blocks.
- Manual: Claude asks permission before file edits and most shell commands.
-
Plan: Claude describes what it will do and waits for approval before making changes. VS Code automatically opens the plan as a full Markdown document where you can add inline comments to give feedback before Claude begins.
You can also type
/planin the prompt box. Requires Claude Code v2.1.280 or later./plan: switches to plan mode. If youâre already in plan mode, shows the current plan instead./planwith a task, such as/plan fix the auth bug: switches to plan mode and starts planning that task./plan open: when youâre already in plan mode, opens the plan file in the editor.
- Accept edits: Claude edits most files in your workspace without asking.
-
Model: select Switch model from the command menu to change the model mid-session. You can also click the model name at the bottom of the prompt box to open the same picker. With Claude Code v2.1.284 or later, typing
/modelon its own in the prompt box opens the picker too. When the current model supports effort levels, the picker also shows an Effort row and the model name button shows the selected level. When you pick a level other thanmax, Claude Code saves it for the current model as your default, undermodelSettingsin your user settings;maxapplies to the current session only. The model name button and the Effort row require Claude Code v2.1.257 or later. When dynamic workflows are enabled and the current model supports it, an Ultracode switch appears under the Effort row. Turn it on to have Claude plan a workflow for each substantive task in this session, at the selected effort level. While itâs on, the model name button shows· Ultracodeafter the level. The switch requires Claude Code v2.1.284 or later. -
Command menu: click
/or type/to open the command menu. Options include attaching files and switching models. The Customize section includes entries such as MCP servers, commands, output styles, hooks, memory, instructions, permissions, and plugins. Items with a terminal icon open in the integrated terminal.-
To browse commands such as
/usageor/remote-control, select Slash commands in the Customize section. A dialog lists them with a filter box. Pick one to run it. Typing/in the prompt box still suggests commands inline. Requires Claude Code v2.1.257 or later. Typing/skillsalso opens this dialog. Each skill row shows its visibility, such as On or Name only. Click the visibility to change it, except on rows marked locked, such as plugin skills. The/skillsshortcut and the visibility controls require Claude Code v2.1.280 or later. - Select Output styles in the Customize section to pick an output style, including your custom styles. Requires Claude Code v2.1.257 or later. To create a custom style instead, select Build a custom style from the Output styles menu. Claude Code writes the style file for you at the project or user level. Requires Claude Code v2.1.261 or later.
- Select Hooks in the Customize section to view the hooks loaded in the session, grouped by event. You can add, edit, or remove hooks saved in your user, project, and local settings files. Hooks from other sources, such as managed settings or plugins, are read-only. Requires Claude Code v2.1.269 or later.
- Select Permissions in the Customize section to view the sessionâs permission rules, grouped into Allow, Ask, and Deny. You can add rules to your user, project, or local settings and remove rules saved there. Rules from other sources, such as managed settings or approvals made for this session only, are read-only. Requires Claude Code v2.1.269 or later.
- Select Memory in the Customize section to turn auto memory on or off. While itâs on, you can also browse the memories Claude has saved and reveal the folders that store them in your file manager. Requires Claude Code v2.1.274 or later. Click a saved memory to read it in the dialog, where you can edit the text, delete the memory, or open its file in the editor. Viewing, editing, and deleting a memory in the dialog require Claude Code v2.1.275 or later.
- Select Instructions in the Customize section to edit the CLAUDE.md files Claude reads. Pick a file to open it in the editor. If the file doesnât exist yet, Claude Code creates it first. Requires Claude Code v2.1.274 or later.
-
Select Status in the Customize section, or type
/status, to check the sessionâs Claude Code version, account, model, and MCP server details. Requires Claude Code v2.1.280 or later. -
Select Sandbox in the Customize section, or type
/sandbox, to see whether Claudeâs Bash commands run sandboxed. You can switch the sandbox mode and add excluded commands there. Requires Claude Code v2.1.280 or later. -
Select Claude in Chrome in the Customize section, or type
/chrome, to check and manage the Claude in Chrome connection. Both require signing in with a claude.ai account. Requires Claude Code v2.1.280 or later. -
Select Export session in the Context section, or type
/export, to copy the conversation as plain text or save it to a file. Add a file name, such as/export notes.txt, to skip the dialog and choose where to save the file. Requires Claude Code v2.1.280 or later. -
The Settings section includes Enable Remote Control for all sessions, which sets
remoteControlAtStartupto control whether new interactive sessions connect to Remote Control automatically. Requires Claude Code v2.1.203 or later. When you turn the toggle on or off in a VS Code window, the change isnât limited to sessions you start afterwards. It also applies to the sessions already open in that VS Code window. If you turn it off, the open sessions disconnect. With Claude Code v2.1.261 or later, the change also reaches sessions open in your other VS Code windows. -
The Settings section also includes Focus view, which hides tool calls, tool results, and thinking behind expandable rows, leaving your prompts and Claudeâs responses. Toggle it there, with
Ctrl+Option+F(Mac) /Ctrl+Alt+F(Windows/Linux), or from the Command Palette with Claude Code: Toggle Focus View. The change applies to every open session and persists across sessions. Requires Claude Code v2.1.221 or later. Claudeâs latest to-do list stays visible, and so does the text a pending question from Claude is asking about; this requires Claude Code v2.1.225 or later. While Claude runs subagents, live progress rows with their latest activity appear under the tool-call group that started them. This requires Claude Code v2.1.269 or later. -
To sign out of your Anthropic account, select Sign out in the Settings section, or type
/logout. On a third-party provider, the menu doesnât offer either. Requires Claude Code v2.1.277 or later. -
To report a bug, click Report a problem at the bottom of the menu, or type
/bugor/feedbackwith an optional description that prefills the report. When you submit the report and youâre signed in to Anthropic on a first-party connection, Claude Code sends it to Anthropic. Requires Claude Code v2.1.229 or later. On a third-party provider, or without Anthropic credentials, nothing is sent. The dialog says so before you write. Submitting saves the report as a local archive under~/.claude/feedback-bundles/with known API key and token patterns redacted. Saving the report on your computer requires Claude Code v2.1.284 or later. After the report is saved, the confirmation names the file and includes a Show folder button. Send that file to your Anthropic account representative or attach it to a support request. If your organizationâs policy turns product feedback off, Report a problem doesnât appear in the menu, and/bugand/feedbackshow aFeedback is turned off by your organization's policy or this environment's settings.notice instead of opening the report. With Claude Code v2.1.284 or later, if you set theDISABLE_FEEDBACK_COMMANDorCLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICenvironment variable, feedback is also turned off and opening the report shows that notice instead.
-
To browse commands such as
-
Side questions: type
/btwfollowed by a question to ask about your session without adding to the conversation. The answer opens in a panel beside the chat, where you can ask follow-up questions. Requires Claude Code v2.1.227 or later. The thread survives window reloads. Claude Code keeps the newest 20 exchanges and expires stored threads on thecleanupPeriodDaysschedule, as long as Claude Code can safely determine the retention period. To clear a thread, click the trash icon in the panel. -
Copy a response: hover over a response and click Copy response to copy it to your clipboard, or type
/copyto copy the latest response./copy 2copies the second-to-last. Requires Claude Code v2.1.277 or later. -
Bookmarks: hover over a response and click Bookmark response to save it, or click Remove bookmark on a saved response to remove it.
To review saved responses, open the Bookmarks panel. You can click the bookmark icon at the top of the Claude Code panel, select Bookmarks in the Context section of the command menu, or type
/bookmarks. Requires Claude Code v2.1.286 or later. -
Files Claude sends you: when the session is connected to Remote Control and Claude sends you files with the
SendUserFiletool, the conversation shows a row such as Sent report.md, chart.png. Click a fileâs name to open it in the editor. The row stays visible in Focus view. Requires Claude Code v2.1.295 or later. A file appears as a full path you canât click, such as\\server\share\report.md, when its path names a network host. Claude Code doesnât link that file because opening it would contact that host and, on Windows, could send your Windows credentials to that host. -
Context indicator: the prompt box shows how much of Claudeâs context window youâre using once usage exceeds
contextUsageThreshold, 50% by default. Claude automatically compacts when needed, or you can run/compactmanually. -
Prompt cache clock: a clock icon in the prompt box estimates how much time the conversationâs prompt cache has left before it expires. It counts down from the cacheâs five-minute or one-hour lifetime, and each response that uses the cache restarts the countdown. Apart from compaction, the actions that invalidate the cache donât reset the clock, so it can still show minutes left after you switch models.
- Until the countdown runs out, the icon shows the minutes left, such as 12m.
- When the countdown runs out, the minutes disappear and the icon turns red, or your themeâs error color, until the next response. The cache has likely expired, so the response to your next message can be slower and more expensive while the cache rebuilds. If the five-minute lifetime keeps running out between your messages, see Choose the TTL yourself.
- Right after the conversation is compacted, the icon also turns red without minutes until the next response, because the cache doesnât cover the compacted conversation yet.
-
Agent map: when the conversation includes subagents, an agent count such as 2 agents appears at the bottom of the prompt box. Its dot shows whether any subagent is working or waiting for your permission.
Click the agent count to open the agent map, which draws the conversationâs subagents as a tree under the main agent, each with its status, elapsed time, and token count. Click a subagent to see its prompt and tool calls, open its read-only transcript, or stop it while it runs. Requires Claude Code v2.1.269 or later.
The map also lists the sessionâs other background tasks, such as background shell commands and monitors, below the agents. Click a row to open the taskâs card and stop it there.
To open the map when no agent count is showing, such as when Claude has started a background shell but no subagents, type
/tasksor/workflowsin the prompt box. Background tasks in the map and the typed/tasksrequire Claude Code v2.1.277 or later. The typed/workflowsrequires Claude Code v2.1.330 or later. With Claude Code v2.1.286 or later, when you stop Claude, the current turn ends. Background agents keep running until they finish or you stop them from the map. -
Extended thinking: lets Claude spend more time reasoning through complex problems. To turn it off or back on, use the Thinking switch in the Model section of the command menu (
/). On models where thinking canât be turned off, the menu has no Thinking switch and thinking stays on. A thinking block that shows only a label, such asThought for 12s, has no text and doesnât open when you click it. To see thinking summaries, setshowThinkingSummariestotruein~/.claude/settings.json, then run Developer: Reload Window from the Command Palette. Thinking blocks you already have stay empty. In responses after the reload, click a block or pressCtrl+Oto expand them all. -
Multi-line input: press
Shift+Enterto add a new line without sending. This also works in the âOtherâ free-text input of question dialogs.
Use or turn off suggested prompts
After Claude replies, the panel can show a suggested next prompt as gray italic text in the empty prompt box. Each suggestion uses a short background request that counts toward your planâs usage limits or API costs.- Use the suggestion: press
Tabto turn it into editable text, then send it. PressingEnterbefore you accept it doesnât send the suggestion. - Write your own prompt: start typing, which hides the suggestion.
promptSuggestionEnabled to false in ~/.claude/settings.json. You stop seeing them in new conversations, or in open ones after you run Developer: Reload Window from the Command Palette. If you set CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION to true, change it to false where you set it, or you keep seeing suggestions.
Reference files and folders
Use @-mentions to give Claude context about specific files or folders. When you type@ followed by a file or folder name, Claude reads that content and can answer questions about it or make changes to it. Claude Code supports fuzzy matching, so you can type partial names to find what you need:
Read specific pages of a PDF
For large PDFs, you can ask Claude to read specific pages instead of the whole file. Ask for a single page, a range like pages 1-10, or an open-ended range like page 3 onward. Reading specific pages requires poppler-utils on the machine where Claude Code runs.Include terminal output in prompts
Reference terminal output in your prompts using@terminal:name where name is the terminalâs title. This lets Claude see command output, error messages, or logs without copy-pasting.
Attach images and files
- To attach an image, paste it from your clipboard into the prompt box.
- To attach files, hold
Shiftwhile dragging them into the prompt box. - To remove an attachment from context, click the X on it.
Paste text
Text you paste stays visible in the prompt box, rather than collapsing to a placeholder as it does in the terminal. In sessions where Claude Code marks pasted text, Claude still sees a large paste as text you pasted rather than typed. Claude Code also removes invisible Unicode characters from text you paste into the prompt box and from anything else you send:- If a notice such as
Removed 3 invisible characters from the pasted textappears when you paste, the text went in without those characters. - If a notice about removed characters appears when you send, nothing was sent. The cleaned text is back in the prompt box. Send again to send the text as shown.
Automatic context from your selection and open file
When you select text in the editor, Claude can see your highlighted code automatically. The prompt box footer shows how many lines are selected. Claude also sees which file you have open in the editor, even when nothing is selected, and the prompt box shows its name. PressOption+K (Mac) / Alt+K (Windows/Linux) to insert an @-mention with the file path and line numbers, for example @app.ts#5-10.
Keep your selection and open file out of your messages
To stop selected text or your open file from going into your messages, turn off the matching setting in VS Codeâs settings:- Selected text: turn off the Attach Selection setting. Requires Claude Code v2.1.300 or later. To drop one selection, click the X beside the line count. The count returns when you select different text.
- Open file: turn off the Attach Open File setting. Requires Claude Code v2.1.271 or later. The file stays out unless your message includes text you selected in it.
Option+K on Mac or Alt+K on Windows and Linux.
Both settings also apply when you run claude in VS Codeâs integrated terminal.
Selected text from excluded or ignored files
In the chat panel, the extension withholds selected text from some files:- When the file is inside your workspace and matches your
files.excludeorsearch.excludesettings, Claude receives at most the fileâs path and not the text you selected. - The same applies to a file git ignores, as long as VS Codeâs
search.useIgnoreFilessetting and the extensionâsrespectGitIgnoresetting are both on, which is the default.
Read deny rule.
LaTeX math in responses
The chat panel shows LaTeX math in Claudeâs responses as typeset formulas. Math rendering requires Claude Code v2.1.301 or later. In terminal mode, math isnât typeset. The panel typesets both display math and inline math:- Display math: a
$$ âĶ $$or\[ âĶ \]block on a line or lines of its own, and a fenced code block withmathas its language - Inline math:
$âĶ$or\(âĶ\)that opens and closes on the same line, such as$E = mc^2$or\(a^2 + b^2 = c^2\)
$HOME, a price like $5, or sed 's/\(foo\)/\1/' isnât typeset. Neither is text inside a code span or inside any code block other than a fenced math block. If a formula shows as written when you expected it typeset, see A formula shows as raw LaTeX.
When you select and copy text that includes a typeset formula, you get the formulaâs TeX source in $âĶ$ or $$âĶ$$ delimiters rather than the drawn symbols. Copy response and /copy give you the response as Claude wrote it, TeX source included.
Mermaid diagrams in responses
To seemermaid code blocks in Claudeâs responses as diagrams in the chat panel, turn on the new look, which is off by default. Diagrams require version 2.1.334 or later of the extension.
If you see This diagram couldnât be drawn. Showing its source., ask Claude to fix or shorten the diagram, or to use another diagram type, such as a flowchart. In VS Codeâs screen reader mode, a mermaid code block shows its source until you click Show diagram.
Resume past conversations
Click the Session history button at the top of the Claude Code panel to access your conversation history. You can search by keyword or browse by time. Click any conversation to resume it. If the conversation is already open in another tab of the current window, clicking it switches to that tab. When a notice says the session is still open somewhere else, see how to continue it in this window. If the conversation opens with no messages showing, see why a resumed conversation is blank at first. For more on resuming sessions, see Manage sessions.- Session titles: new sessions receive AI-generated titles based on your first message.
- Rename and archive: hover over a session to reveal these actions. Rename to give it a descriptive title, or archive to move it to the Archived sessions group at the bottom of the list.
- Conversations missing with
claudeProcessWrapperset: update the extension to version 2.1.304 or later. The list then includes the conversations that were missing, along with sessions thatclaude -por the Agent SDK started in this workspace.
- One session: expand Archived sessions and click Unarchive session. With Claude Code v2.1.336 or later, you can also open the archived session and send a prompt to restore it.
- Every archived session at once: hover over the Archived sessions header in the sessions list in the Activity Bar and click its unarchive icon. Requires Claude Code v2.1.277 or later.
- The extension chooses the starting permission mode from
claudeCode.initialPermissionModeor a pick that carries over from an earlier conversation - You have
claudeCode.claudeProcessWrapperconfigured - A deny rule removes the
ExitPlanModetool permissions.denyInsteadOfPromptingis on
The conversation is still open somewhere else
To continue in this window when a notice says the session is still open somewhere else, click Open here anyway after the step for your case:- You have nothing else open: a Claude process from before the extension restarted may still have the conversation open. That process usually ends on its own within about 10 minutes, so wait that long and then click. If you click before it ends, the conversation is open in two places until it does.
- You have the conversation open somewhere else: close it there first, for example by exiting
claudein a terminal or closing its tab in another VS Code window
claudeProcessWrapper set, the extension skips this check and opens the conversation directly.
Resume cloud sessions from claude.ai
If you run cloud sessions, you can resume them directly in VS Code. This requires signing in with Claude.ai Subscription, not Anthropic Console.1
Open session history
Click the Session history button at the top of the Claude Code panel.
2
Select the Web tab
The dialog shows two tabs: Local and Web. Click Web to see sessions from claude.ai.
3
Select a session to resume
Browse or search the sessions. Click one to continue the conversation locally.
When the folder you have open is a GitHub repository, the Web tab shows only sessions from that repository.When you resume a cloud session, the extension downloads a copy of the conversation history; changes donât sync back to claude.ai.
Check account and usage
Run/usage to open the Account & usage dialog, which shows your signed-in account and your usage. The usage figures match how you signed in:
-
claude.ai plan: usage bars for your planâs limits, such as the current session and the week.
The dialog also breaks down what is contributing to your plan limits:
-
Recommendations: suggested changes, one per row, such as
Trim ~/code/api/CLAUDE.md · 49k tokens per request -
Fix button: to have Claude Code apply the recommendations it can, click the button under them, such as Fix both. To learn which rows the button acts on and what then happens in your session, see Apply recommendations with the fix shortcut. Requires Claude Code v2.1.305 or later.
The button isnât shown while Remote Control is connected. If a warning reads
The usage fix wasnât fully sent. Open usage and try again.after Remote Control connected, disconnect Remote Control before you try again. - Attribution: tables of how much usage came from each skill, subagent, plugin, and MCP server
-
Recommendations: suggested changes, one per row, such as
-
Other sign-ins: when plan limits donât apply to your sign-in, such as on a third-party provider or with an API key, the Usage section shows the sessionâs own cost and token usage instead. The CLIâs
/usageshows the same totals in its Session block. The sessions list in the Activity Bar also shows the active sessionâs totals under its Account & usage header. Requires Claude Code v2.1.277 or later.
Rewind with checkpoints
The VS Code extension supports checkpoints, which track Claudeâs file edits and let you rewind to a previous state. Hover over any message to reveal the rewind button, then choose from three options:- Fork session from here: start a new conversation branch from this message while keeping all code changes intact
- Rewind code to here: revert file changes back to this point in the conversation while keeping the full conversation history
- Fork session and rewind code: start a new conversation branch and revert file changes to this point
/fork in the prompt box once Claude finishes responding. Text you add, as in /fork try the other approach, waits unsent in the forkâs prompt box. Requires Claude Code v2.1.330 or later.
For full details on how checkpoints work and their limitations, see Checkpointing.
Customize your workflow
You can reposition the Claude panel and change its font. You can also run multiple conversations, group or filter the sessions list, or switch to terminal mode.Choose where Claude lives
You can drag the Claude panel to reposition it anywhere in VS Code. Grab the panelâs tab or title bar and drag it to:- Secondary sidebar: the right side of the window. Keeps Claude visible while you code.
- Primary sidebar: the left sidebar with icons for Explorer, Search, etc.
- Editor area: opens Claude as a tab alongside your files. Useful for side tasks.
Change the font
The Claude panel uses VS Codeâs chat font settings, the same ones that style VS Codeâs built-in chat view. Open VS Code settings withCmd+, on Mac or Ctrl+, on Windows and Linux, then search for chat font.
To scale all of VS Code along with the Claude panel, zoom the window with
Cmd+= on Mac or Ctrl+= on Windows and Linux.
Turn the new look on or off
To use the new look of Claude Code in VS Code, or to go back to the previous look, change the New Look setting and reload the window. Requires Claude Code v2.1.333 or later.1
Open the setting on the User tab
Open the New Look setting, or search VS Code settings for
claudeCode.newLook. Select the User tab, because the extension ignores the Workspace tabâs value.2
Turn the setting on or off
Check the box for the new look, or uncheck it for the previous look. Before v2.1.335, select On (
true) or Off (false) from the settingâs dropdown.3
Reload the window
Run Developer: Reload Window from the Command Palette in each open window. The chat panel and the sessions list then show the look you chose. If the new look doesnât appear, update VS Code and the extension, then reload again.
Continue conversations after a reload
After you run Developer: Reload Window or restart VS Code, check where the conversation was open:- Editor tab: the conversation comes back with its tab.
- Sidebar: the conversation comes back if you sent a message or Claude responded in it within the last 10 minutes. If it doesnât come back, resume the conversation from Session history.
Interrupted steps after a reload
If the reload interrupted Claude mid-step, Claude continues that step when the conversation comes back, and a notice in the chat marks the continuation. Requires Claude Code v2.1.274 or later. If the step was interrupted more than an hour ago or the session is open elsewhere, the conversation comes back idle instead. If a notice in the chat says plan mode is now off, Claude didnât continue the interrupted step. To keep planning, select Plan in the mode indicator before you send your next message.Turn off continuation after a reload
To stop Claude from continuing an interrupted step after a reload, open the Continue After Reload setting and uncheck it. If you setCLAUDE_CODE_RESUME_INTERRUPTED_TURN or any other CLAUDE_CODE_RESUME_ variable in VS Codeâs environment or in the environmentVariables setting, it has no effect in the panel. Thatâs because the extension removes those variables before it starts the panelâs sessions.
A conversation was not reopened
After a reload, a new chat with a notice like this above its prompt box means the panel left your conversation closed because the conversationâs last two opens didnât finish:- To open it anyway: click Open it anyway or pick the conversation from Session history. Once the conversation finishes opening, it comes back after later reloads as usual.
- If the panel stops responding while the conversation loads: reload the window. A new chat opens.
- To leave it closed: keep working in the new chat. The notice disappears once you send a prompt.
Run multiple conversations
Use Open in New Tab or Open in New Window from the Command Palette to start additional conversations. Each conversation maintains its own history and context, allowing you to work on different tasks in parallel. When using tabs, a small colored dot on the spark icon indicates status: blue means a permission request is pending, orange means Claude finished while the tab was hidden.Organize sessions into groups
In the sessions list in the Activity Bar, you can collect related sessions into named, collapsible groups. Requires Claude Code v2.1.229 or later.- Group or ungroup a session: right-click a session to create a group from it, move it into an existing group, or remove it from its group. Each session belongs to one group at a time, so moving it into another group removes it from the first.
- Move several sessions at once:
Cmd-click (Mac) /Ctrl-click (Windows/Linux) each session, orShift-click to select a range, then right-click the selection. - Group a session from its tab: run Claude Code: Add Session Tab to Group from the Command Palette, then pick or create a group. Requires Claude Code v2.1.257 or later.
- Rename or delete a group: right-click a group header. Deleting a group removes only the group, and its sessions return to the ungrouped list.
Filter the sessions list
To narrow a long sessions list in the Activity Bar, use the two filter controls at the top of the list. Requires Claude Code v2.1.271 or later. Archived sessions donât appear while either filter is on.- Active: turn on this toggle to show only sessions that need your input, are working, or are unread, plus the session in the Claude tab you last focused.
- Filter by status: click the funnel icon, then check Needs input, Working, or Completed to show sessions in any of those states. Check Open or Closed to narrow by whether a session is open. A session counts as open when it has a tab in this window or is running in another Claude Code process on this machine, such as in a terminal.
Switch to terminal mode
By default, the extension opens a graphical chat panel. If you prefer the CLI-style interface, open the Use Terminal setting and check the box. You can also pressCmd+, on Mac or Ctrl+, on Windows/Linux to open VS Code settings, go to Extensions > Claude Code, and check Use Terminal.
Manage plugins
The VS Code extension includes a graphical interface for installing and managing plugins. Type/plugins in the prompt box to open the Manage plugins interface.
Install plugins
The plugin dialog shows two tabs: Plugins and Marketplaces. In the Plugins tab:- Installed plugins appear at the top with toggle switches to enable or disable them.
- If you turn off a plugin that your projectâs shared
.claude/settings.jsonturns on, the extension asks first: Disable for me turns it off only for you, while Disable for everyone changes the shared file. - A plugin that failed to load shows a short reason on its row. Click the reason for what you can do about it, including copying the full error message to look up in Troubleshoot plugins.
- If you turn off a plugin that your projectâs shared
- Available plugins from your configured marketplaces appear below
- Search to filter plugins by name or description
- Click Install on any available plugin
- Install for you: available in all your projects (user scope)
- Install for this project: shared with project collaborators (project scope)
- Install locally: only for you, only in this repository (local scope)
Uninstall plugins
Each installed row names the scope itâs installed at. To uninstall that installation, click the rowâs trash icon. A dimmed trash icon marks a row you canât uninstall from this workspace, such as a plugin your organization manages or one installed for another project. If you select Uninstall for everyone for a plugin your project turns on, the pluginâs data directory stays on disk.Share a plugin install link
To send someone straight to installing a specific plugin, give them the extensionâsinstall-plugin URL. Opening it launches or focuses VS Code, opens the Claude Code panel, and opens the Manage plugins dialog on that pluginâs scope choice. Nothing installs until the person picks a scope. If the pluginâs marketplace isnât configured in their Claude Code yet, the dialog first asks them to add it.
The extension checks both values before it opens anything:
- Plugin name: at most 100 characters, starting with an ASCII letter or digit and otherwise using only ASCII letters, digits,
.,_, and-. - Marketplace source: only the forms the
marketplaceparameter lists, so not a local path, anhttp://address, or the marketplaceâs name, such asclaude-plugins-official. Anhttps://URL canât contain a user name, password, or query string. - Git ref: to pin the marketplace to a branch or tag, append the ref to the source after
%23, the encoded form of#, as inmarketplace=owner/repo%23v1.0. A link with an unencoded#fails. Marketplaces in theanthropicsGitHub organization canât be pinned in a link.
Invalid plugin installation URL. The Claude Code panel and the dialog donât open, and nothing installs. If your pluginâs name or marketplace canât go in a link, tell people to add the marketplace in the Marketplaces tab and then install the plugin from the Plugins tab.
These cases end at a message in the dialog instead of the scope choice:
- The marketplace doesnât list a plugin by that name: the dialog reports that the plugin wasnât found. Check the
pluginvalue against the marketplaceâs listing. - The plugin is already installed: the dialog says so, and nothing changes.
- A different marketplace with the same name is already added: the dialog says the linkâs marketplace wasnât added, and nothing installs.
http or https, so a vscode:// link there renders as plain text. Put the URL in a code block on those hosts, as The link renders as plain text instead of being clickable describes for claude-cli:// links.
Manage marketplaces
Switch to the Marketplaces tab to add or remove plugin sources:- Enter a GitHub repo, URL, or local path to add a new marketplace
- Click the refresh icon to update a marketplaceâs plugin list
- Click the trash icon to remove a marketplace. Removing it uninstalls every plugin you installed from it, so a confirmation names those plugins first
The extension manages plugins by running the same commands as the CLI. Plugins and marketplaces you configure in the extension are also available in the CLI, and vice versa.
Plugins that draw in the panel
A plugin that contains a mod can draw in the chat panel. Drawing requires extension version 2.1.299 or later. A session that doesnât fetch feature flags, such as one on Amazon Bedrock, needs 2.1.304 or later. From such a plugin you can see:- A pane beside the conversation or above the prompt box
- A toast or a status line above the prompt box
- A message or a tool call drawn the pluginâs own way
- From the token-chart plugin: the plugin drew or printed this, or this card is the plugin asking you something
- Edited by the token-chart plugin: the plugin changed something Claude Code draws, such as a tool call
- Prompt from the token-chart plugin: the plugin sent this message on your behalf
Automate browser tasks with Chrome
Connect Claude to your Chrome browser to test web apps, debug with console logs, and automate browser workflows without leaving VS Code. This requires the Claude in Chrome extension version 1.0.36 or later. Type@browser in the prompt box followed by what you want Claude to do:
- Enable Chrome by default: have each session connect to your browser as it starts, without typing
@browser - Permission prompts in VS Code sessions: when Claude Code asks you before a browser action
- Use Claude Code with Chrome: setup instructions, the full list of capabilities, and troubleshooting
Work with git
Claude Code integrates with git to help with version control workflows directly in VS Code. Ask Claude to commit changes, create pull requests, or work across branches. To start Claude in an isolated worktree with its own files and branch, see Run parallel sessions with worktrees.Create commits and pull requests
Claude can stage changes, write commit messages, and create pull requests based on your work:Reopen a conversation that moved into a worktree
On a reopened conversation, the This session is in worktree banner means the conversationâs working directory is the worktree it names, not the folder this window has open. To open the worktree in a new VS Code window, click Open worktree on the banner. A conversation moves into a worktree when, for example, you ask Claude to work in one. When you reopen it, or the panel reopens it after a window reload, it resumes in the worktree if Claude Code created the worktree under.claude/worktrees/ and it still exists. Before Claude Code v2.1.300, an empty conversation opened instead. On those versions, update the extension.
Work with Jupyter notebooks
Claude Code edits notebooks with the NotebookEdit tool.Re-run edited cells
When Claude replaces a code cell, it rewrites the cellâs source in the file and clears the cellâs saved output and execution count. The edit doesnât require a kernel restart: NotebookEdit writes only the file and doesnât connect to your kernel. Re-run that cell, and any cells that use the functions or variables it defines.Save the notebook before an edit
Save the notebook before you ask for an edit; the extensionâsautosave setting doesnât save before NotebookEdit.
Run work in the background
Send a long-running command or subagent to the background, then check on it from the prompt box.Move a running command or subagent to the background
When a command or a subagent keeps Claude waiting longer than you want, click Run in background below its tool call in the conversation. Requires Claude Code v2.1.287 or later.- Timing: the action appears once a command has run for about two seconds, or as soon as Claude starts waiting for a subagent it spawned from the main conversation.
- After you click: Claude stops waiting and continues the turn. The command or subagent keeps running as a background task that notifies Claude when done.
/tasks in the prompt box to open the agent map. A subagent keeps its place in the tree of agents there, and a command is listed below the agents with its latest output on its card.
The Run in background action is missing under a subagent
By default in VS Code, most subagents donât show this action. To see why for one subagent, open its card in the agent map and read theSpawned by line:
Spawned by the main agent: the subagent started in the background, so Claude isnât waiting for it and you donât need to do anything. To have Claude wait for subagents instead, see Let Claude wait for a subagent.Spawned bynames another subagent: the action appears only for subagents the main agent spawned, not a nested subagent another subagent waits for. To end the nested subagent early, click Stop agent on its card. The waiting subagent then carries on without that result.
Monitor background processes
Type/tasks in the prompt box to open the agent map, which lists the sessionâs background tasks, such as a dev server Claude left running as a background shell command. Click a task to open its card, where you can stop it. Requires Claude Code v2.1.277 or later.
For a background shell command, or a monitor that runs a command, the card also shows the commandâs latest output and refreshes it while the command runs.
See a background subagentâs tool calls
When a subagent shows as one status line with no tool calls, type/tasks in the prompt box to open the agent map and click the subagent there. The subagent is running in the background, and its card shows its tool calls and a button that opens its transcript.
VS Code commands and shortcuts
To open the Command Palette, pressCmd+Shift+P on Mac or Ctrl+Shift+P on Windows/Linux. Type âClaude Codeâ there to see the extensionâs Command Palette commands.
Some shortcuts depend on which panel is âfocusedâ (receiving keyboard input). When your cursor is in a code file, the editor is focused. When your cursor is in Claudeâs prompt box, Claude is focused.
These are VS Code commands for controlling the extension. Not all built-in Claude Code commands are available in the extension. See VS Code extension vs. Claude Code CLI for details.
Toggle focus and open tabs on Windows
To toggle focus withAlt+Y or open a new tab with Shift+Alt+Y, you need Claude Code v2.1.335 or later. If the Extensions view shows an earlier extension version, update the extension there.
When VS Code on Windows connects to WSL, an SSH host, or a dev container, use the same two shortcuts.
Launch a VS Code tab from other tools
The extension registers a URI handler atvscode://anthropic.claude-code/open. Use it to open a new Claude Code tab from your own tooling: a shell alias, a browser bookmarklet, or any script that can open a URL. If VS Code isnât already running, opening the URL launches it first. If VS Code is already running, the URL opens in whichever window is currently focused.
Invoke the handler with your operating systemâs URL opener.
- macOS
- Linux
- Windows
For example, to open a tab pre-filled with âreview my changesâ:
vscode://anthropic.claude-code/install-plugin, which opens the plugin dialog on one plugin. To launch a terminal session instead of a VS Code tab, use the CLIâs claude-cli:// handler. See Launch sessions from links.
Configure settings
You configure the extension in VS Codeâs extension settings and the Claude Code settings file:- Extension settings in VS Code: control the extensionâs behavior within VS Code. Open with
Cmd+,(Mac) orCtrl+,(Windows/Linux), then go to Extensions > Claude Code. You can also type/and select General config to open settings. - Claude Code settings in
~/.claude/settings.json: shared between the extension and CLI. Use it for allowed commands, environment variables, hooks, and MCP servers. With Claude Code v2.1.283 or later, you can also use it as one input to the permission mode conversations start in. On earlier versions, you can do this only on Pro, Max, Ultra, and Team plans. Switch permission modes lists the order. See Settings for details.
Extension settings
VS Code readsinitialPermissionMode from your user settings and ignores workspace values. Before v2.1.225, VS Code defaulted the setting to default and applied workspace values.
Use third-party providers
By default, Claude Code connects directly to Anthropicâs API. If you use Amazon Bedrock, Google Cloudâs Agent Platform, or Microsoft Foundry to access Claude, configure the extension to use your provider instead:1
Disable login prompt
Open the Disable Login Prompt setting and check the box.You can also press
Cmd+, on Mac or Ctrl+, on Windows/Linux to open VS Code settings, search for âClaude Code loginâ, and check Disable Login Prompt.2
Configure your provider
Follow the setup guide for your provider:
- Claude Code on Amazon Bedrock
- Claude Code on Google Cloudâs Agent Platform
- Claude Code on Microsoft Foundry
CLAUDE_CODE_USE_FOUNDRY in the env block of ~/.claude/settings.json so the VS Code extension and the CLI share them./login stays unused: the extension doesnât send it with any request.
Sign in to a Claude apps gateway
Once your machineâs settings name the gateway, you can sign in to a Claude apps gateway from the Claude Code panel. Requires Claude Code v2.1.316 or later.- If the panel opens on a chat, type
/in the prompt box and select Sign in to Cloud gateway. If that isnât listed, select Switch account. - On the sign-in screen, click Cloud gateway.
- Compare the gateway URL and any certificate fingerprint youâre shown with what your administrator published. If either differs, click Cancel sign-in and tell your administrator. Otherwise, click Sign in for the URL and Yes, trust this gateway for the fingerprint.
- On the page that opens in your browser, check that the code matches the one in the panel. If it does, continue and sign in with your work account. If it doesnât, close the page and tell your administrator.
Login is managed by your organization and must be completed in the terminal., update the extension. To sign in without updating, install the CLI, click Run claude in terminal, and run /login there.
Use a screen reader
The extensionâs chat panel works with screen readers. You donât need to turn anything on: the extension announces conversation activity for every user, with no visual change. This is separate from the CLIâs opt-in screen reader mode, which adapts the terminal interface. Screen reader support in the chat panel requires Claude Code v2.1.236 or later. During a conversation, the extension announces:- Claudeâs replies: the extension announces each reply once, when itâs complete, and stays silent while text streams in. Your screen reader reads code blocks as a line-count summary, reads links by their label, and reads tables cell by cell; the full reply stays readable in the transcript.
- Permission requests and questions: the extension announces a request when its permission prompt appears, naming the tool Claude wants to use. It announces in the same way when Claude asks you a question and when Claude finishes a plan and waits for your review.
- Status changes: the extension announces when Claude starts working, when Claude is ready for your input, and when Claude Code starts compacting the conversation. If you send a prompt while the sessionâs SessionStart hooks are still running, your screen reader also says âRunning start-up hooks.â
- Queued messages: when you send a message while Claude is working, the extension announces âMessage queued.â for that message.
- Errors and model prompts: the extension announces errors in the conversation, and announces when the usage-credits consent prompt or the flagged-request prompt appears.
Use the chat panel from the keyboard
Each turn in the transcript starts with a visually hidden heading labeled with the prompt that started the turn. Use your screen readerâs heading navigation to jump between turns. Within a turn, your screen reader announces whose message youâre on as you move through it:- Your messages: âYouâ
- Claudeâs messages: âClaudeâ
- Tool steps: âClaudeâ plus the tool name, such as âClaude, Bashâ
- Thinking blocks: âClaude, thinkingâ
Tab and read it at your own pace. To move focus to the newest message or a waiting permission prompt instead, run Claude Code: Focus Last Message from the Command Palette.
When a permission prompt option saves a permission rule or directory access, its label names where the approval is saved, such as âall projectsâ or âthis sessionâ. You can change the destination with the keyboard or a click:
- With that option focused, press the
LeftorRightarrow key. The extension announces each destination as you move to it. The arrow keys require Claude Code v2.1.268 or later. - Click the destination in the label.
VS Code extension vs. Claude Code CLI
Claude Code is available as both a VS Code extension (graphical panel) and a CLI (command-line interface in the terminal). Some features are only available in the CLI. If you need a CLI-only feature, runclaude in VS Codeâs integrated terminal. This requires the standalone CLI install: the extension does not add claude to your PATH. See Run CLI in VS Code.
Run CLI in VS Code
To use the CLI while staying in VS Code, pressCtrl+` on Windows/Linux or Cmd+` on Mac to open the integrated terminal, then run claude.
To get features like diff viewing and diagnostic sharing, connect the CLI to the extension from the integrated terminal or an external terminal:
- Integrated terminal: install the extension, then start
claude. The CLI connects automatically. Claude Code v2.1.318 or later doesnât install the extension for you, so until you install it,/idereports âNo available IDEs detectedâ and/statusshows the IDE as âNot connectedâ. - External terminal: run
/ideinside Claude Code to connect to VS Code. If VS Code is running without the extension,/ideinstalls it, unless you turned offautoInstallIdeExtension.
claude on your shell PATH. The extension bundles a private copy of the CLI for its chat panel, but typing claude in a terminal requires the standalone CLI install. Run the install once and the commands on this page, including claude mcp add and claude --resume, work in any terminal. If claude is still not found after installing, verify your PATH.
Switch between extension and CLI
The extension and CLI share the same conversation history. To continue an extension conversation in the CLI, runclaude --resume in the terminal. This opens an interactive picker where you can search for and select your conversation.
Connect to external tools with MCP
MCP (Model Context Protocol) servers give Claude access to external tools, databases, and APIs. To manage MCP servers without leaving VS Code, type/mcp in the chat panel. From the dialog that opens, you can:
- Add servers
- Remove servers saved at the local, user, or project scope
- Enable or disable servers
- Reconnect to a server
- Manage OAuth authentication
claude mcp add in VS Codeâs integrated terminal (Ctrl+` or Cmd+`). The dialog and the terminal command save to the same MCP configuration, and changes from either take effect in conversations you start afterwards. The example below adds GitHubâs remote MCP server, which authenticates with a personal access token passed as a header:
YOUR_GITHUB_PAT with your personal access token. The claude mcp add command saves the configuration without validating credentials, so a placeholder value is accepted here but the server fails to connect later. To verify the connection, start a new conversation, type /mcp, and check that the server shows Connected. A server with bad credentials shows Failed.
Once configured, ask Claude to use the tools (for example, âReview PR #456â).
To find servers to connect, see Find and build MCP servers.
The built-in IDE MCP server
When the extension is active, it runs a local MCP server that the CLI connects to automatically. Through this server, the CLI:- Opens diffs in VS Codeâs native diff viewer
- Reads your current selection for
@-mentions - Asks VS Code to execute cells when youâre working in a Jupyter notebook
ide and is hidden from /mcp because thereâs nothing to configure. If your organization uses a PreToolUse hook to allowlist MCP tools, though, youâll need to know it exists.
Selection and open-file context. While connected, the CLI includes your current editor selection and the path of the active file as context on each prompt you send. The transcript shows a â§ Selected N lines from <file> line when this happens. These cases change that context:
- Attach Selection setting off: the CLI doesnât include your selection as context.
- Attach Open File setting off: the CLI includes the active fileâs path only when it also includes a selection.
- Queued messages: if you queue a message while Claude works, it keeps the selection you had when you pressed
Enter, whatever you select afterward. - Sensitive files: to exclude a sensitive file such as
.env, add aReaddeny rule for its path. A matching deny rule prevents both the selected text and the open-file notice for that file from reaching Claude.
127.0.0.1 on a random port in the range 10000â65535, and the port is not configurable. The transport and the auth token work as follows:
- Transport: unencrypted
ws://. Because the socket is loopback-only, any process that could capture the traffic can also read the token from the lock file, so TLS would not add protection. - Auth token: each extension activation generates a fresh random auth token and writes it to a lock file at
~/.claude/ide/<port>.lock. The CLI must present the token as theX-Claude-Code-Ide-Authorizationheader to connect. - Lock file permissions: the lock file has
0600permissions in a0700directory, so only the user running VS Code can read it. IfCLAUDE_CONFIG_DIRis set, the lock file is written to$CLAUDE_CONFIG_DIR/ide/instead.
Diagnostics in the chat panel. In the chat panel, with Claude Code v2.1.285 or later, Claude reads VS Codeâs Problems panel through a separate built-in server named
claude-vscode. Claude can ask it for the current errors and warnings in one file, or in every file VS Code has diagnostics for.
Hooks and permission rules see the chat panelâs diagnostics tool as mcp__claude-vscode__getDiagnostics. To cover diagnostics in both the CLI and the chat panel, name both mcp__ide__getDiagnostics and mcp__claude-vscode__getDiagnostics in your hook or rule.
This settings.json example blocks both tools by name with deny rules:
mcp__ide__executeCode canât run anything silently. Each call goes through these steps:
- The code is inserted as a new cell at the end of the active notebook.
- VS Code scrolls the cell into view.
- A native Quick Pick asks you to Execute or Cancel.
Esc, returns an error to Claude and nothing runs. The tool also refuses outright when thereâs no active notebook, when the Jupyter extension (ms-toolsai.jupyter) isnât installed, or when the kernel isnât Python.
The Quick Pick confirmation is separate from
PreToolUse hooks. An allowlist entry for mcp__ide__executeCode lets Claude propose running a cell; the Quick Pick inside VS Code is what lets it actually run.Fix common issues
Sign-in, network, and launch errors have their own entries on the install troubleshooting and error reference pages. The following table links messages and symptoms to their entries:Extension wonât install
- Ensure you have a compatible version of VS Code (1.94.0 or later)
- Check that VS Code has permission to install extensions
- Try installing directly from the Visual Studio Marketplace
Spark icon not visible
The Spark icon appears in the Editor Toolbar (top-right of editor) when you have a file open. If you donât see it:- Open a file: The icon requires a file to be open.
- Check VS Code version: Requires 1.94.0 or later. Check under Help > About
- Restart VS Code: Run âDeveloper: Reload Windowâ from the Command Palette
- Disable conflicting extensions: Temporarily disable other AI extensions (Cline, Continue, etc.)
- Check workspace trust: The extension doesnât work in Restricted Mode
Cmd+Shift+P / Ctrl+Shift+P) and type âClaude Codeâ.
Cmd+Esc does nothing on macOS
On macOS Tahoe and later, the system Game Overlay shortcut is bound toCmd+Esc by default and intercepts the keypress before it reaches VS Code. To free the shortcut:
- Open System Settings
- Go to Keyboard, then Keyboard Shortcuts, then Game Controllers
- Clear the Game Overlay checkbox
Cmd+K Cmd+S), search for Claude Code: Focus Input, and assign a new binding. If the command appears twice in the results, assign the same keybinding to both rows so that it works both in the editor and on VS Codeâs Welcome page.
Ctrl+J adds a new line in the prompt box
To stopCtrl+J from adding a new line in the prompt box, unbind the key in Claude Codeâs keybindings.json file. The extension reads this file in version 2.1.309 or later, so update an older extension in the Extensions view first.
This example is the whole file with the one entry that unbinds the key, "ctrl+j": null in a Chat block:
~/.claude unless you moved it with CLAUDE_CONFIG_DIR. Create the file there, or update the file you already have:
- No
keybindings.jsonyet: create it with exactly the content of the example - A
keybindings.jsonwith noChatblock: add the exampleâsChatblock to the top-levelbindingsarray, at any position - A
Chatblock with no"ctrl+j"line: add"ctrl+j": nullto that blockâsbindings - A
Chatblock that already has a"ctrl+j"line: change that lineâs value tonull
Ctrl+J in the prompt box adds no new line.
If Ctrl+J still adds a line in the prompt box, run these two commands from the Command Palette in order:
- Developer: Reload Window, then press
Ctrl+Jin the prompt box again - Claude Code: Show Logs, then look for a warning that includes
Ctrl+J in the chat input still inserts a newline. Correct the problem it reports in the file it names, save the file, and pressCtrl+Jagain.
Chat block sets "ctrl+j" to null. Report the issue if Ctrl+J still adds a line.
The Claude Code panel is blank or couldnât load
If the Claude Code panel opens but shows nothing at all, not even the prompt box, update the extension to v2.1.309 or later in the Extensions view. Then run Developer: Reload Window from the Command Palette. If you then see aClaude Code couldnât load notice, work through the steps it lists in order.
If the panel still doesnât load, open the extensionâs log and report the issue with a copy of it:
- Still blank on v2.1.309 or later: open the log with Claude Code: Show Logs from the Command Palette
- The noticeâs steps didnât help: click Show logs in the notice to open the log
A resumed conversation is blank at first
When you resume a past conversation or one comes back after a reload, its messages can stay blank while the conversationâs Claude Code process starts. After about a second,Waiting for your pluginsâĶ appears in the empty space.
You donât need to do anything. The messages appear once the process has started and confirmed that no plugin needs to check them first, or after 20 seconds if starting takes longer.
The panel stops responding each time a reload reopens a conversation
If the whole panel crashes, freezes, or shows onlySomething went wrong each time you reload and your conversation comes back, update the extension to v2.1.301 or later. Then reload the window or restart VS Code again. After the conversation fails to finish opening twice in a row, you get a new chat in its place, with a notice that it was not reopened.
A formula shows as raw LaTeX
If none of the math in Claudeâs responses is typeset, check the extensionâs version in the Extensions view, because math rendering requires version 2.1.301 or later. If you use terminal mode, which doesnât typeset math whatever the version, uncheck the Use Terminal setting so that Claude Code opens in the chat panel instead. If one formula shows as written while others near it are typeset, check it for these causes:- The formula is inline and the panel doesnât treat it as math: ask Claude to send it again as a
$$block on its own lines. The panel leaves an inline formula as written when the text between its$âĶ$delimiters:- Is more than simple arithmetic yet has no character such as
=,+, or^to mark it as math, as in$O(n log n)$ - Starts with a digit and has no such character, as in
$30$and$1/N$ - Has spaces inside the dollar signs, as in
$ x^2 $ - Is longer than 60 characters
- Is split across two lines. A
\(âĶ\)formula split across two lines isnât typeset either.
- Is more than simple arithmetic yet has no character such as
- The formula has a TeX syntax error: ask Claude to rewrite it with the error corrected.
- The formula defines a macro: a formula with a macro definition such as
\newcommandor\defshows as written. Ask Claude to rewrite it without the macro. - The formula contains an unescaped
%: ask Claude to rewrite it with\%for a percent sign. - The formula is too large: a formula longer than 8,192 characters, or one whose typeset output would be far larger than its TeX source, shows as written. Ask Claude to split it into smaller formulas or to write it more compactly.
- The formula follows a large amount of math: within one block of text in a response, the panel typesets formulas in order up to a limit. A later formula that would go past the limit shows as written. Ask Claude to send the formula you need again by itself.
Dictation or the Web tab fails behind a TLS-inspecting proxy
When dictation or the Web tab fails with a certificate error such asunable to get local issuer certificate, set NODE_EXTRA_CA_CERTS in the env block of ~/.claude/settings.json. Set it to the path of a PEM file with your proxyâs root CA certificate, which your IT team can give you. The failure appears on the microphone button or Web tab, or in the logs:
- Dictation: the microphone button shows
Dictation error: Couldnât connect to the speech service. To look for a certificate error, run Claude Code: Show Logs from the Command Palette and search the output forSpeech-to-text error. Read the error text afterSpeech-to-text erroron the newest matching line. Before v2.1.336, the button showedDictation error: WebSocket error:followed by the error text. - Web tab: the tab that lists cloud sessions shows
Remote server is not connectedwithout the error text. To read it in the logs:- Run Claude Code: Show Logs from the Command Palette to open the
Claude VSCodeoutput channel. - Click Reconnect on the tab and wait until it stops showing
ConnectingâĶ. - Search the channel for
Error fetching remote sessions:orFailed to fetch organization UUID:, then read the error text after that prefix on the newest matching line.
- Run Claude Code: Show Logs from the Command Palette to open the
- Log warning: a warning naming
an authority that Claude Code does not trustreports a certificate error. Behind a TLS-inspecting proxy, setNODE_EXTRA_CA_CERTSinenvin~/.claude/settings.json. Versions before v2.1.309 donât log this warning.
Add your proxyâs CA certificate
This fix requires extension version 2.1.307 or later, so update the extension first. Then setNODE_EXTRA_CA_CERTS to the certificate fileâs full path, written without ~. For a Windows path, write each backslash twice in settings.json, as in C:\\certs\\example-ca.pem.
In a window connected to WSL, an SSH host, a dev container, or another system, save the certificate file and edit
~/.claude/settings.json on that system, not on your local computer./etc/ssl/certs/example-ca.pem:
~/.claude/settings.json
settings.json, then start a recording or click Reconnect again. If the error comes back, open the output channel with Claude Code: Show Logs and search it for use the CA certificates file. Such a warning gives the reason the extension canât use your file and says where it read the path.
This table shows what to do for the places where you set NODE_EXTRA_CA_CERTS:
Claude Code never responds
If Claude Code isnât responding to your prompts:- Check your internet connection: Ensure you have a stable internet connection
- Start a new conversation: Try starting a fresh conversation to see if the issue persists
- Try the CLI: Run
claudefrom the terminal to see if you get more detailed error messages
Uninstall the extension
To uninstall the Claude Code extension:- Press
Cmd+Shift+Xon Mac orCtrl+Shift+Xon Windows/Linux to open the Extensions view - Search for âClaude Codeâ
- Click Uninstall
- Run
/idefrom an external terminal while VS Code is running - Start
claudein the integrated terminal on a Claude Code version before v2.1.318
- Set
autoInstallIdeExtensiontofalsein~/.claude.json - Set
CLAUDE_CODE_IDE_SKIP_AUTO_INSTALLto1underenvin a settings file - In the integrated terminal, turn off Auto-install IDE extension in
/config
Next steps
Now that you have Claude Code set up in VS Code:- Explore common workflows to get the most out of Claude Code
- Set up MCP servers to extend Claudeâs capabilities with external tools. Add and manage them with
/mcpin the chat panel. - Configure Claude Code settings to customize allowed commands, hooks, and more. These settings are shared between the extension and CLI.
- Review security safeguards and data usage for Claude Code