Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Diplodoc ExtensionNew to Visual Studio Code? Get it now.
Diplodoc Extension

Diplodoc Extension

Diplodoc

|
77 installs
| (2) | Free
Diplodoc Extension for VSC
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

english | русский


Diplodoc Extension for VS Code

VS Code extension for the Diplodoc documentation platform. Provides a WYSIWYG Markdown editor, YAML validation, autocompletion, linting, and visual editors for .md, toc.yaml, and page-constructor .yaml files.

Features

  • WYSIWYG Markdown Editor — visual editing with toolbar for Diplodoc-specific blocks (notes, cuts, tabs, includes, page-constructor, HTML blocks, Mermaid diagrams)
  • TOC Editor — dedicated visual editor for toc.yaml files
  • YAML Validation — JSON Schema-based validation for toc.yaml, .yfm, .yfmlint, presets.yaml, redirects.yaml, theme.yaml, and page-constructor files
  • Markdown Linting — real-time diagnostics via @diplodoc/yfmlint with full plugin support
  • Autocompletion & Hover — YAML property completion with schema documentation
  • Link Navigation — Ctrl+Click on file paths and URLs in YAML files to open them
  • Orphan Detection — highlights .md and page-constructor .yaml files not connected to any toc.yaml in the Explorer; offers to remove from toc or add redirect when files are deleted
  • Markdown Link Updates — when renaming or deleting a .md file, finds and updates all markdown links ([text](https://github.com/diplodoc-platform/vsc/blob/HEAD/path.md)) across the project, not just toc.yaml references
  • Preset Variables — hover over {{variable}} to see values across all presets; Ctrl+Click to navigate to definition in presets.yaml; autocompletion inside {{ }}
  • Color Picker — inline color preview and picker for YAML color values
  • Sidebar — file browser with search, quick navigation, and project initialization
  • Syntax Highlighting — YAML highlighting inside ::: page-constructor blocks in Markdown

Requirements

VS Code 1.110+

Installation

Install from the VS Code Marketplace or via command line:

code --install-extension diplodoc.diplodoc-vsc-extension

Usage

The extension activates automatically when you open a Markdown or YAML file.

WYSIWYG Editor

Open the visual Markdown editor:

  • Click the Diplodoc icon in the editor title bar
  • Or run Open Diplodoc Markdown Editor from the Command Palette

The editor supports two modes: WYSIWYG and Markup. Set the default mode in settings:

{
  "diplodoc.editorMode": "wysiwyg"
}

Settings

Setting Type Default Description
diplodoc.editorMode string wysiwyg Default mode for the Markdown editor (wysiwyg or markup).
diplodoc.isOnlyYfm boolean false Validate only Markdown files inside a YFM project. Page-constructor blocks are validated regardless.
diplodoc.excludedDirs array [] Extra directories to exclude from validation and file scanning. node_modules, _build, output are always excluded.
diplodoc.excludedFiles array README/AGENTS/CONTRIBUTING/CHANGELOG Files inside a YFM project that are neither validated nor flagged as orphans. Matched by exact name, basename, or regex.
diplodoc.lintRules object {} MD/YFM lint rules applied to all Markdown files. Same format as .yfmlint; a project's .yfmlint takes precedence.

Keyboard Shortcuts

Shortcut Action
Alt+T Insert Table
Alt+R Insert Note
Alt+C Insert Cut
Alt+A Insert Tabs
Alt+O Insert Code Block
Alt+Z Insert Include
Alt+Q Insert Quote
Alt+M Insert Mermaid Diagram
Alt+F Insert Frontmatter
Alt+P Insert Page Constructor
Alt+H Insert HTML Block
Alt+V Insert Video

Validation

The extension validates the following file types against Diplodoc JSON Schemas:

File Schema Type
toc.yaml Table of Contents
.yfm Project config
.yfmlint Lint config
presets.yaml Presets
redirects.yaml Redirects
theme.yaml Theme
index.yaml Leading page
YAML with blocks: Page Constructor
Markdown frontmatter Frontmatter

Markdown files are linted with @diplodoc/yfmlint. Configure lint rules via .yfmlint at your project root:

default: true
MD013: false
YFM003: error
log-levels:
  MD001: disabled

Page Constructor

YAML files with a top-level blocks: key can be edited in the WYSIWYG editor. The extension automatically detects these files and enables the visual editor button.

Sidebar

The Diplodoc sidebar in the activity bar shows all .md, toc.yaml, and page-constructor files in your workspace. Use it to:

  • Browse and search project files
  • Open files in the visual editor
  • Initialize a new Diplodoc project (yfm init)

Contributing

See CONTRIBUTING.md for development setup, architecture overview, testing, and contribution guidelines.

License

MIT

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