Official D2 extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=d2lang.d2lang โ// momentum
// why it's here
- Active: last commit today
// how to help
// readme
d2lang
The official D2 extension for Visual Studio Code.
Note: Requires D2 to be installed on your machine. See https://github.com/d2lang/d2/tree/master#install for instructions.
Currently Supports
- Syntax highlighting
.d2files - Open preview window on the side (right-click or (ctrl+shift+d) (mac -> shift+cmd+d))
- Format Document for
.d2files - Autocomplete, hover, live diagnostics, outline, folding, color pickers, and links with the D2 language server
- Go to Definition, Find All References, and Rename Symbol across D2 imports
- Format a fenced
d2block in Markdown. Place the cursor inside the block or select it, then run d2: Format D2 Block from the Command Palette or Format D2 Block from the editor context menu. - View rendered D2 code snippets in markdown document preview
- Theme and Layout are configurable from settings and the Command Palette
x -> y
# d2-vscode can syntax highlight nested markdown correctly.
y: |`md
# d2-vscode
VSCode extension for [D2](https://d2lang.com) files.
`|