[FEATURE] JetBrains plugin: setting to disable diff auto-focus / tab-switch (accessibility)
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
When using the JetBrains Claude Code [Beta] plugin with diff_tool in its default IDE mode, the plugin auto-focuses the
diff view and switches the active editor tab to the file being diffed whenever Claude edits a file. There is currently
no plugin setting, /config option, settings.json key, or IDE registry flag to suppress this while keeping IDE diffs
enabled.
Accessibility impact
I have ASD. Involuntary focus/tab-switching isn't a preference issue — it removes control over where my attention goes,
which is a documented accessibility barrier:
- WCAG 2.4.3 (Focus Order) — focus must move in an order that preserves meaning and operability.
- WCAG 3.2.1 (On Focus) — a change of context must not occur solely from a component receiving focus.
The JetBrains platform already exposes the primitive (focusEditor=false on FileEditorManager.openFile(...) and
similar APIs). The plugin just needs to surface it.
Proposed Solution
Any one of these would fix the problem:
- A JetBrains plugin setting in
Settings → Tools → Claude Code [Beta]: "Open diffs without stealing focus / switching
tab" (checkbox).
- A Claude Code config key (e.g.
diffAutoFocus: false) that the plugin reads and uses to passfocusEditor=falseto
the IDE's file-open API.
- Respect the existing
prefersReducedMotionsetting from~/.claude/settings.jsonas a signal to suppress focus
changes as well as animations — this already has accessibility precedent in the schema.
Alternative Solutions
Alternative Solutions
- Set
diff_tooltoterminalvia/config. Works but eliminates inline IDE diffs entirely, which is a significant
ergonomics downgrade. The accessibility fix shouldn't require giving up the feature.
Priority
High - Significant impact on productivity
Feature Category
Configuration and settings
Use Case Example
While reviewing output in one tab, Claude edits a file in another part of the project. The JetBrains plugin yanks the
editor to that file's diff view, breaking my concentration and forcing me to navigate back to where I was. With many
edits in sequence, the effect compounds.
Additional Context
Related Issues
- #25018 — same request, VS Code scope
- #42032 — same request, VS Code scope
- #32726 — adjacent (VS Code panel focus-stealing)
- #43484 — closed as duplicate; not the same behavior fixed
Environment
- Claude Code: v2.1.114
- JetBrains plugin: Claude Code [Beta] v0.1.14-beta
- OS: macOS (Darwin 25.4.0)
9 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
@github-actions re-review the issue please with @claude if possible
terribly annoying, reported zillion times: focus is the least of the issue here, u type into terminal, aka claude, bloody window pops up, u click space as a space symbol in the text u're typing, edit window vanishes, essentially blinks and u've just accepted smth, all nice and dandy, on top of that when it drops focus it lands it to next file opened in the editor, not back to terminal,so to top it off u also have just typed some chat message into random place of the project. GG, please, just take my money.
Yes, very annoying. I really like using Claude Code within Pycharm, but this issue makes it almost impossible to multitask. Please fix it :)
It is very annoying, but also quite dangerous - if we're typing in one project and the focus gets pulled to a diff for approval it is pretty easy to accidentally approve or alter the diff. Please fix!
Please! Like the others said, besides being annoying, this is very important for security also.
I agree, this really needs to be fixed. It is a hazard and a huge inconvenience.
Very annoying needs to be fixed!
Please, add an option to disable it!