[BUG] Diff view file links should include line numbers for direct navigation

Resolved 💬 4 comments Opened Feb 5, 2026 by Liphtier Closed Mar 6, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When Claude Code makes edits to a file, the diff view in the console shows the file path as a clickable link and displays line numbers in the gutter. However, clicking the link navigates to the file but not to the
specific line where the change was made.

Use case:
When reviewing multiple edits across different parts of a file, it would be much faster to click directly to each change location rather than manually scrolling to find the modified lines.

Current behavior:

  • Diff shows: Update(path/to/File.ts) (clickable)
  • Line numbers shown in gutter: 22 +, 255 +, 660 +
  • Clicking the link opens the file at line 1 if not already open, or just switches to the already open file at its current position

What Should Happen?

Expected behavior:

  • Links should be formatted as file:line (e.g., path/to/File.ts:22)
  • Clicking should navigate directly to the changed line in the IDE

Error Messages/Logs

Steps to Reproduce

  1. Open any project in IntelliJ IDEA with Claude Code plugin
  2. Ask Claude Code to make an edit to a file
  3. Observe the diff view output in the Claude Code terminal
  4. Click the file path link in the Update(path/to/File.ts) header
  5. The link opens the file at line 1 (if not already open), or switches to the file at its current scroll position

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.1.32

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

IntelliJ IDEA terminal

Additional Information

Intellij plugin: Claude Code [Beta] - 0.1.14-beta

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗