Hugo Page Bundles, VS Code, and

I find myself wanting to add a lot of diagrams to my posts. Previously I would have drawn them in an external editor (say, InkScape), and then exported to either SVG or PNG. While this works, it’s not as “immediate” as the nice live-reload system I’ve come to love with Hugo.

Enter the (unofficial) extension for Visual Studio Code!

You can find it here:

Or alternatively, install it from within VSCode (Ctrl+Shift+P, Install Extensions).

Once installed, you can simply create empty .drawio.svg files in your page bundle directory, and the editor will appear embedded within VSCode.

Example of extension being used in VSCode

And since SVG can be easily embedded in webpages, you can reference it in Markdown just as you would any other image:


You may be interested in... is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to I may earn a small commission for my endorsement, recommendation, testimonial, and/or link to any products or services from this website.

Comments? Questions?