Skip to main content

Editor Support

D2 maintains extensions for VS Code and Vim.

  • VS Code — Install d2lang for syntax highlighting, formatting, and diagram previews. See the VS Code guide.
  • Vim — Install the D2 plugin for syntax highlighting and automatic indentation.