Ask Claude VS Code Extension
A VS Code extension that allows you to point to code or add terminal errors to chat with Claude Code instead of copy-pasting.
Features
- Send Selected Code to Claude Code: Right-click on selected code and choose "Send to Claude Code" to ask questions about specific code snippets
- Send Terminal Errors to Claude Code: Right-click in terminal and choose "Send Terminal Error to Claude Code" to get help with errors
Usage
For Code Questions
- Select the code you want to ask about
- Right-click and select "Send to Claude Code"
- Enter your question in the input box
- The extension will open Claude Code in a new terminal with your code and question
For Terminal Errors
- Right-click in the terminal
- Select "Send Terminal Error to Claude Code"
- Paste the error message
- Enter what you want Claude Code to help with
- The extension will open Claude Code with your error and request
Requirements
- VS Code 1.74.0 or higher
- Claude Code CLI installed and available in your PATH
Installation
- Install the extension from the VS Code marketplace
- Make sure you have Claude Code CLI installed:
npm install -g @anthropic/claude-code
Commands
Ask Claude: Send to Claude Code - Send selected code to Claude Code
Ask Claude: Send Terminal Error to Claude Code - Send terminal error to Claude Code
| |