~/academy $ claude learn claude-code-in-your-editor
Claude Code in VS Code and JetBrains
Install the Claude Code extension for VS Code or the plugin for JetBrains IDEs, and use the diffs, selections and shortcuts they add. 7 min
$ Read
Two ways in
The VS Code extension gives Claude Code its own graphical panel inside the editor. It also installs in Cursor and other VS Code based editors. The JetBrains plugin works with IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm, GoLand and others, and runs Claude Code in the IDE's own terminal.
Both need the same account as the terminal version: a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account, checked 18 November 2026. You sign in the first time you use it.
Lesson notes: Claude Code in VS Code and JetBrains
Everything in this lesson as text, for revision or to read without the interactive steps. By the end you will be able to: You have Claude Code running inside your editor and know what it adds over the plain terminal.
Step 1 of 7 · Read
Two ways in
The VS Code extension gives Claude Code its own graphical panel inside the editor. It also installs in Cursor and other VS Code based editors. The JetBrains plugin works with IntelliJ IDEA, PyCharm, Android Studio, WebStorm, PhpStorm, GoLand and others, and runs Claude Code in the IDE's own terminal.
Both need the same account as the terminal version: a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account, checked 18 November 2026. You sign in the first time you use it.
Step 2 of 7 · Read
Install the VS Code extension
You need VS Code 1.94.0 or later. Press
Ctrl+Shift+X(Cmd+Shift+Xon Mac) to open Extensions, search for "Claude Code" and click Install. If it does not appear, run "Developer: Reload Window" from the Command Palette.Open it with the Spark icon at the top right of the editor (it shows when a file is open), the Spark icon in the left Activity Bar, or ✻ Claude Code in the status bar. Click Sign in and finish in your browser.
The extension bundles its own copy of Claude Code for the panel, but it does not add
claudeto your terminal. To typeclaudein VS Code's terminal as well, install the standalone version too.Step 3 of 7 · Read
What the editor adds
Diffs you can review. In Manual mode, each proposed edit opens side by side with the original, with Accept this change and Reject this change under each change.
Context from what you are looking at. Claude sees your open file and any selected text. Press
Alt+K(Option+Kon Mac) to insert a reference such as@app.ts#5-10. Mention a terminal with@terminal:nameto share its output.Plans as documents. Pick Plan in the mode indicator under the prompt box and the plan opens as Markdown you can comment on inline. Hover over a message to rewind code or fork the conversation from there.
The panel and the terminal share history, so
claude --resumein a terminal picks up an extension conversation. Some terminal features, such as!shell commands and the full command list, are only in the terminal version.Step 4 of 7 · Read
Set up JetBrains
The JetBrains plugin does not include Claude Code itself, so install the terminal version first. Then install the Claude Code plugin from the JetBrains Marketplace and restart the IDE.
Run
claudein the IDE's terminal and everything connects. From a terminal outside the IDE, startclaudein the project folder and run/ide. UseCtrl+Esc(Cmd+Escon Mac) to open Claude Code from the editor, andAlt+Ctrl+K(Cmd+Option+Kon Mac) to insert a file reference.Changes open in the IDE's diff viewer and Claude can read the IDE's lint and syntax errors. If
Escdoes not stop Claude, go to Settings, Tools, Terminal and untick "Move focus to the editor with Escape".Step 5 of 7 · Try it in the terminal
Connect from an outside terminal
Claude Code is already running in your normal terminal, in the same folder as your IntelliJ project. Type the command that connects it to the IDE.
Hint: A three letter slash command, short for integrated development environment.
Show the command
$ /ide Connected to IntelliJ IDEA.
Step 6 of 7 · Quiz
Check your understanding
You installed the VS Code extension and it works in the panel. In the VS Code terminal, typing claude says "command not found". Why?
- The extension only works on paid VS Code licences.
- The extension bundles a private copy for its panel and does not put claude on your PATH. Install the standalone version for the terminal.
- You need to restart your computer.
Show the answer
The extension bundles a private copy for its panel and does not put claude on your PATH. Install the standalone version for the terminal. Right. One install of the standalone version and claude works in every terminal, including VS Code's.
Step 7 of 7 · Sort
VS Code or JetBrains?
Sort each fact to the integration it describes.
- Bundles its own copy of Claude Code for its panel
- Needs the terminal version installed first
- Opens the plan as a Markdown document with inline comments
- Settings live under Settings, Tools, Claude Code [Beta]
- Opened from the Spark icon
- Installed from the JetBrains Marketplace, then the IDE is restarted
Show the answers
- Bundles its own copy of Claude Code for its panel: VS Code extension. The extension works even before you install the terminal version, though only in its panel.
- Needs the terminal version installed first: JetBrains plugin. The plugin runs the claude command in the IDE terminal, so claude must be on your PATH.
- Opens the plan as a Markdown document with inline comments: VS Code extension. Plan review as a document is a feature of the VS Code panel.
- Settings live under Settings, Tools, Claude Code [Beta]: JetBrains plugin. That is where the plugin's command path and update options are.
- Opened from the Spark icon: VS Code extension. The Spark icon marks Claude Code throughout VS Code.
- Installed from the JetBrains Marketplace, then the IDE is restarted: JetBrains plugin. The plugin comes from the JetBrains Marketplace. The VS Code extension comes from the Extensions view.