How to add external file reference by shortcuts with vscode extension #6423

Open
opened 2026-02-16 18:04:11 -05:00 by yindo · 1 comment
Owner

Originally created by @tirelyl on GitHub (Jan 15, 2026).

Originally assigned to: @jayair on GitHub.

Question

When using opencode extension in VS Code, I can successfully add file references from the current project path by use the shortcuts Cmd + Option + K. However, when I attempt to add external files as session references, I am unable to do so successfully.

For example, when I navigate to certain external source code via code, I want to add the external source code as a reference for the current session.

This works normally in the Claude Code extension.

Image Is there anyone who can help me with this question? I might not have found the correct documentation.🙏
Originally created by @tirelyl on GitHub (Jan 15, 2026). Originally assigned to: @jayair on GitHub. ### Question When using opencode extension in VS Code, I can successfully add file references from the current project path by use the shortcuts `Cmd + Option + K`. However, when I attempt to add external files as session references, I am unable to do so successfully. For example, when I navigate to certain external source code via code, I want to add the external source code as a reference for the current session. This works normally in the Claude Code extension. <img width="409" height="453" alt="Image" src="https://github.com/user-attachments/assets/74ba2def-8bdd-43be-b3a4-a4a0540a1120" /> Is there anyone who can help me with this question? I might not have found the correct documentation.🙏
yindo added the docs label 2026-02-16 18:04:11 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #3947: vscode extension: adding file to opencode doesn't work in 1.0+ - Similar keyboard shortcut issue with file references
  • #4522: Missing files when using @ to reference files mid sentence - Related file reference functionality
  • #4011: bug: referencing file causes issue - File reference crashes
  • #8223: [FEATURE]: add "@" mention files in prompt support in opencode web ui prompt window - Related feature for file references

For keybind-related issues, please also check our pinned keybinds documentation: #4997

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 16, 2026): This issue might be a duplicate of existing issues. Please check: - #3947: vscode extension: adding file to opencode doesn't work in 1.0+ - Similar keyboard shortcut issue with file references - #4522: Missing files when using @ to reference files mid sentence - Related file reference functionality - #4011: bug: referencing file causes issue - File reference crashes - #8223: [FEATURE]: add "@" mention files in prompt support in opencode web ui prompt window - Related feature for file references For keybind-related issues, please also check our pinned keybinds documentation: #4997 Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6423