VSCode extension: Ctrl+Shift+Click on file:// links should open in external browser
Feature Request
In the Claude Code VS Code extension's chat panel, clicking file:// links (e.g. review HTML artifacts) opens them in the VS Code editor instead of the system browser.
Expected Behavior
A modifier-key variant (e.g. Ctrl+Shift+Click) on file:// links in the chat panel should open them in the default external browser rather than the VS Code editor.
Current Behavior
Ctrl+Click on file:// links in the chat panel always opens them in the VS Code editor. There is no way to open them in a browser from the chat panel without:
- Copying the link and pasting it into the browser address bar manually
- Using
! xdg-open <path>as a workaround
Context
This affects review workflows where Claude generates local HTML pages (e.g. image comparison review pages) and links to them in the chat. Since the chat panel is a VS Code webview, standard VS Code keybindings can't intercept link clicks — the fix needs to come from inside the extension's link handler.
Suggested Solution
In the webview's link click handler, detect a modifier key (e.g. Ctrl+Shift) and call vscode.env.openExternal() instead of vscode.open() for file:// URIs, routing them to the OS default browser.
Alternatively, a setting like "claudeCode.openFileLinksExternally": true would give users control over this behavior.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗