Tuesday, May 26, 2026Tech HubAboutContactAdvertiseNewsletter
Back to Home
How to use Claude in vscode?

How to use Claude in vscode?

<p>I. Installing the Claude Plugin in VSCode</p> <p><a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnllxknmexs8btpy5nxiy.png" class="article-body-

B
Blizine Admin
·1 min read·0 views

Pandas Posted on May 25 How to use Claude in vscode? # ai # claude # tutorial # vscode I. Installing the Claude Plugin in VSCode II. Create a new configuration file Add a config.json file to the ~/.claude directory The content of config.json is as follows: Replace config.json with the API key you applied for yourself at Zhipu: { "primaryApiKey": "sk-test" } Restart VS Code. You no longer need to log in, but it still won't work. III. Modify the configuration file Claude Code -> Settings -> Edit in settings.json Add the following field: "claudeCode.environmentVariables": [ { "name": "ANTHROPIC_BASE_URL", "value": " https://open.bigmodel.cn/api/anthropic " }, { "name": "ANTHROPIC_AUTH_TOKEN", "value": "Replace with the API key you applied for yourself at Zhipu" } ] Close and reopen VS Code. IV. Claude Code Usage Tips parse the project and generate or update the CLAUDE.md documentation. /init Clear the conversation and restart /clear Compact the context /compact Exit the session /exit Deep Thinking ultrathink+query Top comments (0) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink . Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse

📰Originally published at dev.to

Comments