A VS Code extension for opening files from docs.yml files and opening any src file, including Fern's markdown reusable snippet components.
CleanShot.2025-09-08.at.12.07.19.mp4
- Cmd+Click Navigation: File paths appear underlined and can be opened with Cmd+Click
- Smart Resolution: Automatically resolves relative paths
- Multiple File Types: Supports .md, .mdx, images, PDFs, and other documentation assets
docs.yml Files:
summary: ../docs/api-reference.mdx
path: "./guides/setup.md"
content: ../snippets/example.mdx
Fern Markdown Snippets & src Attributes:
<Markdown src="/snippets/marketplace-url.mdx" />
<img src="../assets/diagram.png">
<embed src="./document.pdf">
<Download src="../files/guide.pdf">
src={../components/Button.mdx}
- File paths appear underlined in YAML and MDX files
- Hold
Cmd
(orCtrl
on Windows/Linux) and click any underlined path - The file opens in a new tab
Toggle On/Off: Use Command Palette → "Toggle File Path Links" to enable/disable
- Open this folder in VS Code
- Press
F5
to launch Extension Development Host - Test the extension in the new window
- Package the extension:
npx @vscode/vsce package
- Install using one of these methods:
Option A: Command Palette
- Press
Cmd+Shift+P
(Mac) orCtrl+Shift+P
(Windows/Linux) - Type:
Extensions: Install from VSIX
- Select the generated
file-path-opener-1.0.0.vsix
file
Option B: Command Line
# Run from the extension directory:
code --install-extension file-path-opener-1.0.0.vsix
# Or from anywhere with full path:
code --install-extension /path/to/file-path-opener-1.0.0.vsix
- docs.yml navigation: Click on file paths in YAML configuration files to open referenced markdown files
- Fern markdown snippets: Open reusable snippet components via
<Markdown src="..." />
- Asset references: Navigate to images, PDFs, and other documentation assets
- Component imports: Jump to referenced MDX components and files
Found a bug or want to request a feature?
Please include an example of the file path that's not working and expected vs actual behavior