File tree Expand file tree Collapse file tree
docs/how-tos/vs-code/external-ai-tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ title : Use Claude Code in the Datacoves VS Code IDE
3+ sidebar_label : Claude Code
4+ description : " Set up and log in to Claude Code in the Datacoves VS Code environment to get AI-powered help for SQL and Python files."
5+ sidebar_position : 2
6+ ---
7+
8+ # Claude Code
9+
10+ [ Claude Code] ( https://www.anthropic.com/claude-code ) is an AI coding assistant available as both a CLI tool and a VS Code extension in Datacoves.
11+
12+ ## Prerequisites
13+
14+ - A [ Claude] ( https://claude.ai ) account
15+ - Claude Code enabled in your Datacoves environment. Contact [ Datacoves support] ( mailto:support@datacoves.com ) to enable it.
16+
17+ ## Login
18+
19+ 1 . Open a terminal in your Datacoves VS Code workspace
20+
21+ 2 . Run:
22+
23+ ``` bash
24+ claude login
25+ ```
26+
27+ 3 . Follow the instructions in the terminal
28+
29+ 4 . When you get the prompt ** "Do you want code-server to open the external website?"** , click ** Cancel**
30+
31+ 5 . Ctrl-click (Cmd-click on Mac) the link shown in the terminal
32+
33+ 6 . Click open in the promp that appears
34+
35+ 7 . Authenticate in the browser tab that opens
36+
37+ 8 . Copy the code shown after authentication and paste it back in the terminal where prompted
38+
39+ 9 . Press ** Enter**
40+
41+ Both the CLI and the VS Code extension are now authenticated.
42+
43+ ## Trouble copying text from the terminal
44+
45+ If you have problems copying text from Claude Code in the VS Code terminal, run this command inside Claude Code:
46+
47+ ```
48+ /tui default
49+ ```
You can’t perform that action at this time.
0 commit comments