Claude Code guide in three levels, Beginner to Advanced: hands-on lessons with checked exercises, every volatile fact cited to its source. Independent community guide.
Use Claude Code in your editor
Beginner · Elective · about 15 minutes · Needs: Install, sign in and look around · Verified against Claude Code v2.1.292 (stable) on 2026-10-15
Goal
By the end of this Elective you can run Claude Code inside VS Code or a JetBrains IDE, point it at the lines you're looking at, and review its edits in the editor's diff view.
You need
- Your copy of the practice template, with no uncommitted changes, open in VS Code or a JetBrains IDE such as IntelliJ IDEA or PyCharm.
- For JetBrains, the Claude Code command-line tool from lesson 1: the plugin runs it in the IDE's terminal.
- Usage: light.
The idea
The terminal isn't the only place Claude Code runs. Two editor integrations put it next to your code:
- The VS Code extension has its own chat panel and brings its own copy of Claude Code. In Manual mode, it shows each proposed edit side by side with the original and asks before applying it (VS Code).
- The JetBrains plugin runs the
claudecommand in the IDE's terminal and opens the edits it proposes in the IDE's diff viewer (JetBrains IDEs).
Either way, it's the same Claude Code: the same account, permission modes and CLAUDE.md.
Worked example
In VS Code:
Open the Extensions view with
Cmd+Shift+X(Mac) orCtrl+Shift+X(Windows and Linux), search for "Claude Code", and click Install. The extension doesn't work in Restricted Mode, so if VS Code shows a Restricted Mode banner or asks whether to trust the folder, trust it: this copy is your own code (Workspace Trust).Open
src/config.js. Click the Spark icon at the top right of the editor to open Claude Code, and sign in if it asks. No icon? Click✻ Claude Codein the status bar at the bottom right instead.Select the body of
parseConfigand pressOption+K(Mac) orAlt+K(Windows and Linux). The prompt box gets a reference with the file path and line numbers, such as@src/config.js#7-17. Ask:What happens if linkcheck.json holds an array instead of an object?Switch the mode at the bottom of the prompt box to Manual, then ask for a small edit, such as a comment above
parseConfig. The edit opens side by side with the original, and Claude asks for permission in the chat panel. Reject the edit there (VS Code). The Reject this change buttons inside the diff only revert one change in the proposal; they don't finish the review.
In a JetBrains IDE:
- Install the Claude Code plugin from the JetBrains Marketplace and restart the IDE.
- Click the Claude Code button in the IDE, or press
Cmd+Esc(Mac) orCtrl+Esc(Windows and Linux), to start Claude Code in the IDE's terminal. If nothing happens, open the IDE's terminal and runclaude: started there, it connects to the IDE on its own. If the IDE shows "Cannot launch Claude Code", it can't findclaudeon yourPATH: set the full path toclaudeunder Settings > Tools > Claude Code [Beta] > Claude command (plugin settings). - Open
src/config.js, select the body ofparseConfig, and pressCmd+Option+K(Mac) orAlt+Ctrl+K(Windows and Linux). The prompt gets a reference such as@src/config.js#L7-17. Ask the same question. - Press
Shift+Tabuntil the status bar under the prompt reads⏸ manual mode on(Choose a permission mode). On native Windows, ifShift+Tabdoes nothing, pressAlt+Minstead (Interactive mode). Then ask for the same small edit: it opens in the IDE's diff viewer, and Claude asks for permission in the terminal. Choose No (Configure permissions).
Your turn
- Install the extension or the plugin for the editor you use.
- Open
src/links.js, select the wholefindLinksfunction, and press the reference shortcut:Option+K(Mac) orAlt+K(Windows and Linux) in VS Code,Cmd+Option+K(Mac) orAlt+Ctrl+K(Windows and Linux) in JetBrains. Then ask what kinds of links it finds. - Switch to Manual mode as in the Worked example, ask for a small edit, and look it over in the diff view. Then reject the edit at Claude's permission prompt: in the chat panel in VS Code, or by choosing No in the terminal in JetBrains.
Check
This Elective has no npm run check: tick each item yourself. You are done when all of these are true:
- The integration is installed. VS Code: the Extensions view (
Cmd+Shift+XorCtrl+Shift+X) shows Claude Code as installed. JetBrains: the plugin shows under Settings > Plugins > Installed. -
git diffprints nothing, because you rejected the edit. - Self-check (not tested): you asked a question with a reference to the lines you had selected.
If git diff shows the edit, it was applied: the session wasn't in Manual mode, or you approved it. Discard it with git restore <file>, using the file git diff names. Then switch to Manual, ask for the edit again, and reject it.
Go further
- Desktop quickstart: Claude Code in the Claude desktop app.
- VS Code commands and shortcuts.
Sources: VS Code · JetBrains IDEs · Configure permissions · Choose a permission mode · Interactive mode · Workspace Trust
Back to the Beginner index · Topic: Memory and context · Stuck on this lesson?