Claude Code for VS Code: Fix with Claude Code, Add Cell to Chat and Merge Conflict Help

Claude CodeView original changelog

The Claude Code VS Code extension added "Fix with Claude Code" as a quick fix for errors, warnings and failed tests, "Add Cell to Chat" for notebooks, "Add to Chat" for changed files in Source Control, and "Resolve Merge Conflicts" on conflicted files. It also warns before sending a very large selection.

Key Takeaways

  • "Fix with Claude Code" appears as a quick fix for errors, warnings and failed tests.
  • "Add Cell to Chat" attaches a notebook cell with its outputs or error.
  • "Add to Chat" now appears for changed files in Source Control.
  • "Resolve Merge Conflicts" shows on conflicted files and in the Merge Changes group.
  • A notice appears before a very large selection or file is sent.
  • The @ menu lists open editor tabs first, most recently used on top.

New entry points into the chat

Version 2.1.331 of the VS Code extension adds several shortcuts that put code context into the chat box.

Fix with Claude Code

"Fix with Claude Code" appears as a quick fix for errors and warnings, and on failed tests in the test peek and the Test Results view. It puts the problem into the chat box so Claude can work on it.

Add Cell to Chat

The notebook cell menu gains "Add Cell to Chat", which attaches a cell together with its outputs or error.

Add to Chat in Source Control

The right-click menu of changed files in the Source Control view gains "Add to Chat".

Resolve Merge Conflicts

"Resolve Merge Conflicts" is added to the editor title of a file with merge conflicts and to the Merge Changes group in Source Control.

Guidance for large prompts

The extension now shows a notice before sending a very large selection or attached text file. Under "Prompt is too long", it names the large part and suggests what to do next.

Sign-out and sign-in

When a user logs out and the request to revoke their claude.ai login is not confirmed, the extension shows a warning and a link to the revoke page. The sign-in screen also says when it opened because a request was refused.

@ menu

The @ file menu lists the files of open editor tabs first, with the most recently used on top.