[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.
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
- Start Claude on a task
- Press ESC
- Press ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC ESC !@#$%^ Ctrl-C
- Curse like a proverbial sailor
Expected Behavior
Pressing ESC to interrupt the agent.
Actual Behavior
Nothing. Pressing ESC doesn't do anything.
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.
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?
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)
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 !!!
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.
Why can't you upgrade - I mean this was useful as I found how to fix it on mine, just curious ...
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.