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

[BUG] At wits end with IntelJIdea, I have to get a new IDE if you can't fix this... <ESC> to interrupt Claude, doesn't.

Open walt93 opened this issue 6 months ago • 3 comments

Environment

  • Platform (select one):
    • [X] Anthropic API
    • [ ] AWS Bedrock
    • [ ] Google Vertex AI
    • [ ] Other:
  • Claude CLI version:
  • Operating System: macOS 15.3
  • Terminal: IntelliJ IDEA 2023.1.1 (Ultimate Edition) Build #IU-231.8770.65

Bug Description

So many times I have tried to interrupt Claude to prevent it searching for twenty minutes for something I can paste. But ESC simply doesn't work.

Steps to Reproduce

  1. Start Claude on a task
  2. Press ESC
  3. Press ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC !@#$%^ Ctrl-C
  4. Curse like a proverbial sailor

Expected Behavior

Pressing ESC to interrupt the agent.

Actual Behavior

Nothing. Pressing ESC doesn't do anything.

walt93 avatar Jun 20 '25 00:06 walt93

Just go to Settings -> Tools -> Terminal and uncheck "Move focus to the editor with Escape".

At least this fixes it in the most recent PyCharm. For IntelliJ IDEA 2023.1.1 it could be a bit different, I don't know.

jsmits avatar Jun 20 '25 06:06 jsmits

hey @walt93 . First off, apologies for the inconvenience!

What version of the plugin are you running? If you're running on 0.1.9-beta, then it should already try to capture esc for you if there is a successful IDE connection (this is one of the features of the integration)

When you run Claude Code, and type in the /ide command, do you see a connected IDE instance?

hackyon-anthropic avatar Jun 20 '25 17:06 hackyon-anthropic

hey @walt93. Let me know if you're still having issues with the Esc button after installing this plugin: https://plugins.jetbrains.com/plugin/27310-claude-code-beta- (you should also be able to search for the plugin in the JetBrains marketplace)

hackyon-anthropic avatar Jun 23 '25 18:06 hackyon-anthropic

Same in PyCharm both professional and community (2024.3.6 should be latest). Latest Code as of today.

Ok, just seen @jsmits reply - that works !!!

GanizaniSitara avatar Jul 05 '25 15:07 GanizaniSitara

Note the version: IntelliJ IDEA 2023.1.1, IMO this IDE is not worth the price of admission for many use cases, much of its feature set is ungainly cruft. Too bad you couldn't make the fix universal. You can close this issue, I no longer care.

walt93 avatar Jul 05 '25 17:07 walt93

Why can't you upgrade - I mean this was useful as I found how to fix it on mine, just curious ...

GanizaniSitara avatar Jul 05 '25 21:07 GanizaniSitara

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

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