Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MkDocs Snippet LensNew to Visual Studio Code? Get it now.
MkDocs Snippet Lens

MkDocs Snippet Lens

main-branch

|
2 installs
| (0) | Free
Preview and open MkDocs --8<-- snippets directly in VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MkDocs Snippet Lens

VS Code Marketplace Open VSX GitHub Releases

Continuous Integration License: MIT

A Visual Studio Code extension that provides inline previews, clickable links, and diagnostics for MkDocs --8<-- snippet references in Markdown files.

Features

  • Inline Previews: See snippet content directly in your editor without opening the file
  • Clickable Links: Navigate to snippet files with a single click
  • Error Diagnostics: Get immediate feedback when snippet files are missing
  • Hover Previews: View full snippet content on hover

Installation

You can install MkDocs Snippet Lens from any of these sources:

  • VS Code Marketplace
  • Open VSX Registry
  • Download latest VSIX from GitHub Releases

Or build from source.

Extension Settings

This extension contributes the following settings:

  • mkdocsSnippetLens.basePath: Base directory for resolving snippet paths (relative to workspace root)
  • mkdocsSnippetLens.previewMaxLines: Maximum number of lines to show in inline preview (default: 20)
  • mkdocsSnippetLens.previewMaxChars: Maximum number of characters to show in inline preview (default: 200)

Commands

  • MkDocs Snippet Lens: Toggle All Previews: Toggle inline previews on/off

Known Issues

See the issue tracker for known issues.

Contributing

Contributions are welcome! Please read our Contributing Guide for details on our development workflow, including:

  • Working on feature branches (never commit directly to main)
  • Creating and submitting pull requests
  • Rebase requirements for fast-forward merges
  • Code review process

License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft