[FEATURE] JetBrains plugin: setting to disable diff auto-focus / tab-switch (accessibility)

Status Open
Maintainer reply None cached
Activity 9 comments · opened Apr 19, 2026

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:

  1. A JetBrains plugin setting in Settings → Tools → Claude Code [Beta]: "Open diffs without stealing focus / switching

tab" (checkbox).

  1. A Claude Code config key (e.g. diffAutoFocus: false) that the plugin reads and uses to pass focusEditor=false to

the IDE's file-open API.

  1. Respect the existing prefersReducedMotion setting from ~/.claude/settings.json as a signal to suppress focus

changes as well as animations — this already has accessibility precedent in the schema.

Alternative Solutions

Alternative Solutions

  • Set diff_tool to terminal via /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)

View original on GitHub ↗

9 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/25018
  2. https://github.com/anthropics/claude-code/issues/42032
  3. https://github.com/anthropics/claude-code/issues/47609

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

laurac8r · 4 months ago

@github-actions re-review the issue please with @claude if possible

morkevicius · 4 months ago

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.

GerbenKD · 3 months ago

Yes, very annoying. I really like using Claude Code within Pycharm, but this issue makes it almost impossible to multitask. Please fix it :)

DavidT3 · 2 months ago

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!

arthurwinck · 2 months ago

Please! Like the others said, besides being annoying, this is very important for security also.

josvanegmond-visma · 2 months ago

I agree, this really needs to be fixed. It is a hazard and a huge inconvenience.

shawnmervin-svg · 2 months ago

Very annoying needs to be fixed!

Julienh · 1 month ago

Please, add an option to disable it!