Make file references with line numbers clickable and navigate to exact line

Bug report request for product/service

Cursor IDE

Describe the request

Not sure whether this is a bug or a feature request.

When AI assistants reference files with line numbers in responses, clicking on those references should navigate directly to the specified line.

Current Behavior:

When an AI assistant references a file like:

File: seller-service/seller_service/api/v1/products/views.py (line 203)

Clicking on it either:

  1. Doesn’t work at all
  2. Opens the file but doesn’t jump to the line
  3. Is inconsistent

Expected Behavior:

  1. Clicking on file references with line numbers should:
  2. Open the file if it’s not already open
  3. Navigate to the exact line number specified
  4. Work consistently across different reference formats

Example Formats That Should Work:

  1. File: path/to/file.py (line 123)

Use Cases:

When reviewing AI suggestions that reference specific code locations, being able to click and jump directly to that line would significantly improve the workflow, similar to how VS Code handles file:line references.

Operating System (if it applies)

MacOS

Hey, thanks for the report. We want to investigate and make it stable.

Please share:

  • Exact examples of chat lines where clicking doesn’t lead to navigation
  • Whether the link becomes clickable in the chat or is just text
  • Reproduction steps and a short video
  • Cursor and macOS version: Help > About
  • Open Help > Toggle Developer Tools and click on such a link, send errors from the Console
  • Whether the file is inside the current workspace and if the path is relative

Let us know what you find out.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.