Skip to content
BENIBIX Learn

--ide Flag

Also known as claude --ide, --ide

It links the session to your code editor at the start.

Think of it like

It is like your phone finds your ear buds as soon as you turn it on.

Example

Emma always has VS Code open. She adds --ide to her start command, so each session sees the file she is looking at without a /ide step.

Why it matters

Claude sees what you are looking at, so you point less and explain less.

Definition

--ide links Claude Code to your code editor as soon as the session starts. It only does this when exactly one editor it can use is open. Once linked, Claude can see the file and lines you have open, and show its changes in the editor. If two editors are open, use /ide to pick one.

Example code

bash
claude --ide
Start and link to the open editor.
--ide links the session to your editor.

Common mistake

Expecting it to choose when two editors are open. It does nothing then. Run /ide and pick one.

Key takeaways

  1. 1
    At start. No /ide needed.
  2. 2
    One editor only. Or it waits.
  3. 3
    Sees your file. And shows diffs.

Learn it properly