claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Feature Request] Automatically detect and connect to IDE

Open liaolunhui opened this issue 6 months ago • 1 comments

Feature Request Automatically detect and connect to IDE

Why? Always forget to connect IDE until it show code diff in the command line output which is difficult to review.

Thank you for considering this feature!

liaolunhui avatar Jun 22 '25 03:06 liaolunhui

hey @liaolunhui, we added this feature last week! Please update to the latest version and try it out.

Once you're connected to an IDE, there should be an Auto-connect to IDE option in /config. You can also run claude with the claude --ide flag as well to trigger this.

Note that it will only auto-connect if there is one matching IDE (if you have multiple IDEs opened, the auto-connection might not happen).

hackyon-anthropic avatar Jun 30 '25 14:06 hackyon-anthropic

@hackyon-anthropic - this doesn't appear to be respected.

Firstly, I had to manually add it to settings.json. I hope I got the name right, because there doesn't seem to be a way for me to know. The setting didn't show up in /config until I added it to the settings file, so I have to assume I got it right. The docs do not mention this setting.

Secondly, even though it's showing false in my settings, running claude with no arguments still fires the auto-connect, disconnecting my other instance. I want to keep a single instance with IDE connection running while running other instances without it. That doesn't appear to work. It's worth noting that I'm running these instances in the VSCode terminal, but I do need to be able to say "hands off my IDE" when starting Claude from within the VSCode terminal, particularly because each new instance hijacks the current holder of the IDE connection, causing it to be lost. It makes it quite frustrating to start a new session for a small task, as it causes the current instance to lose it's connection, requiring an /exit and claude /resume

My settings.json:

{
  "model": "sonnet",
  "autoConnectToIde": false
}
Image

BuckAMayzing avatar Jul 10 '25 13:07 BuckAMayzing

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Oct 28 '25 14:10 github-actions[bot]