CH 36 / 86Chapter 5: Claude Code (The Core of Development)

Using Claude Code with an IDE

On this page7 items

In 10 seconds

In real work, you don’t do everything in the terminal.
Viewing diffs visually, passing your selection directly, and running several side by side: these three make the difference.

Claude Code is usually introduced on a terminal screen, but once you use it all day long, the terminal alone isn’t enough.

The reason is simple: diffs are hard to read. Reviewing changes spanning 10 files by scrolling through a terminal just isn’t realistic.

Three benefits#

Viewing diffs visually. This is the biggest one. With an IDE extension, changes appear in the diff view you already use. You can read them with familiar eyes before accepting. If a person takes on the reviewer role described in No.22, readability translates directly into accuracy.

Passing your selection directly. Instead of saying “this function”, you can select it in the editor and pass it along. You can specify a file with line numbers, so there’s no need to explain “which part I’m talking about”.

Running several side by side. Run separate tasks at the same time, and one moves forward while you look at the other. In the desktop app, you can view sessions side by side.

Which one to use#

EnvironmentBest for
VS Code / CursorExtension. Diffs appear inline. You can approve a plan before it runs
JetBrainsPlugin. The CLI must be installed separately
Desktop appRunning multiple sessions side by side. No CLI install needed
TerminalPiping, running in CI, embedding in scripts

The VS Code extension offers inline diffs, file references with @, plan review, and conversation history. The JetBrains plugin centers on the diff view and sharing selections, and it requires installing the Claude Code CLI separately.

How this guide is made#

As stated in the master plan, this guide is made using Antigravity and Claude Code together. A real day looks like this:

  • Read the draft in the editor and select the parts to fix
  • Ask Claude Code to “fix this part like this”
  • Check the result in the diff view
  • Run the scripts for exporting figures and posting in the terminal

No single tool does it all. Writing happens in the editor, fixing in Claude Code, checking in the diff view, and running in the terminal. The roles are divided.

Rather than “moving to Claude Code”, it’s closer to reality to say that Claude Code comes into your usual environment.

You can move around#

Sessions aren’t tied to one place. According to the official documentation, you can move them like this:

  • Use /desktop to move a terminal session to the desktop app (when you want to see diffs)
  • Use remote control to continue a local session from your smartphone
  • Pull work started on the web or mobile into the terminal with claude --teleport

Go to the desktop when you want to see diffs; go back to the terminal for detailed work. Once you can move back and forth like this, there’s no need to agonize over choosing an environment.

Try it: check the same change two ways (5 minutes)

Try this with an IDE extension installed.

Prompt
Add a "Setup" section to the README. After making the change, stop and let me review it.

Look at the resulting diff both in the terminal and in the IDE’s diff view.

Expected result: Even for the same change, readability differs, and the gap widens as the number of lines grows.

If it doesn’t work: If nothing appears in the diff view, either the extension isn’t enabled or the session wasn’t started from the IDE. Restart it from the IDE’s command palette.

Common pitfalls#

Sticking it out in the terminal alone. It’s fine for small changes, but reviewing breaks down somewhere past 10 files. That’s the time to switch.

Being satisfied just by opening the IDE. Even with the extension installed, you only get half the benefit if you don’t pass selections. Instead of typing “this function”, select it and then ask.

Trying to settle on one environment. You don’t have to. You can move around.

Summary#

  • Don’t do everything in the terminal; reviewing diffs breaks down
  • The three things that help: viewing diffs, passing selections, running side by side
  • JetBrains requires installing the CLI separately
  • Sessions can move between places

Read next#

Session Etiquette