Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>HDLBlockNew to Visual Studio Code? Get it now.
HDLBlock

HDLBlock

Steve Creations

| (0) | Free
Edit ASCII/Unicode box diagrams embedded in SystemVerilog comments, in place: boxes, shadows, fills, thin/heavy/double/dashed/rounded lines, connected resizing, corner reshaping, mux and macro shapes, copy/paste, zoom and pan.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HDLBlock

Draw block diagrams in VS Code and keep them as readable Unicode text in your source files. The graphical editor opens beside your code; edits update the diagram text automatically. Export SVG or PNG images for documentation and presentations.

Add boxes, arrows and labels, then move or resize shapes with their connections attached. Diagrams stay in your source, ready to review and version alongside your code.

Supports SystemVerilog, Verilog, VHDL, C, C++, Java, TypeScript, Python, Tcl, JavaScript, plain text and Markdown. Requires VS Code 1.85 or later.

Examples: Unicode diagrams and SVG output

A simple diagram in SystemVerilog comments:

// @hdlblock-begin
//   ┌────────┐     ┌────────┐
//   │  FIFO  ├─────►  Core  │
//   └────────┘     └────────┘
// @hdlblock-end

Export the same diagram as an SVG with smooth outlines and text that stays sharp when resized.

PNG preview of the FIFO-to-Core SVG export

Getting started

  • Download the .vsix from the official releases. In VS Code, use Extensions: Install from VSIX... in the Command Palette.

  • Open a supported file, place the cursor where the diagram should go, then right-click and choose Documentation... → Insert Block Diagram. The editor opens beside your source.

  • Drag with Box and Arrow to draw; use Text for labels and Select to move or resize. Changes update the source automatically. Save the file as usual.

    Drawing, connecting and labelling boxes, then moving a box with its connection following

  • To reopen a diagram, click Edit diagram above its @hdlblock-begin marker.

Edit diagram link above the diagram in the source editor

Exporting Diagrams

Choose Export… → SVG (vector) in the diagram toolbar, then choose a filename and save. Use the SVG in your documents, slides or web pages.

Export includes the whole diagram on a white background, without the editor grid or selection handles. PNG export is also available through Export… → PNG…, with adjustable image size.

Support and licence

Report problems through GitHub Issues. Include your VS Code version, operating system, and steps to reproduce the problem.

The public extension is free to use for personal and commercial development under the EULA. Third-party dependencies retain their own licences.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft