macOS PDF Opener
click a local PDF. read it in built-in macOS Preview. Adobe Acrobat or Acrobat Reader is an explicit optional choice. your Mac already has a PDF viewer. we gave it the work. no runtime npm dependencies. no embedded PDF renderer. no telemetry or network requests. no webview scripts or bundled executable. the document opens in a separate application window, not inside VS Code. this extension is a doorman, not a second apartment for PDF parsing. Install: give the PDF a forwarding addressRequirements: macOS, VS Code 1.85 or newer, and Preview registered with macOS Launch Services (included with macOS).
The command preserves other editor associations and sets:
Workspace settings or another profile may override this user-level setting. In that case, use Reopen Editor With..., choose macOS PDF Viewer (external), then Configure default editor for '*.pdf' in that workspace/profile. Explorer files and chat links that VS Code routes through its normal editor resolver use this association. A chat provider that forces the text editor or opens an external URL can bypass it; this extension cannot intercept those links. Use PDF Viewer: Open PDF for an explicit launch or retry. the association handles the normal route. a chat provider taking a private helicopter around it is outside our jurisdiction. To choose Acrobat instead, set The extension ID is now The custom editor ID and command IDs retain their original
What happens: one PDF, one handoff
The extension does not make PDFs safe: keep macOS, your chosen viewer, and VS Code updated and only open documents you trust. macOS accepting a launch request does not prove the viewer successfully rendered the document. the icon smiles. the security boundary does not change. Develop and verify: trust is earned, not declaredNo dependency installation or compilation is needed.
A real editor-host integration test is included. Use an isolated user-data and extensions directory so the test does not alter your everyday editor settings:
The integration test checks activation, the PDF default association, and normal
file-open resolution to the custom editor. It does not claim to verify a chat
provider's click handler or the viewer's rendered output. Results are written to
Quick demonstrationRun PDF Viewer: Use as Default PDF Opener, then click a local PDF; it opens in macOS Preview by default, outside VS Code. Remove: no exit interviewUninstall the extension, then remove the the doorman leaves. the building stays where it was. |