Share a styled code snippet on Twitter or LinkedIn that perfectly matches your editor color theme
Drop a polished code image into a blog post without switching to a separate website
Create a code screenshot with a transparent background for embedding in a design mockup
Polacode is an extension for Visual Studio Code that lets you take beautiful screenshots of your code. You select a snippet, open the Polacode panel, and it renders the code using your current editor theme and font. The result looks like a photo taken with a Polaroid camera, styled to match the exact colors and typography you have already set up in your editor. The motivation is straightforward: developers put a lot of care into how their code looks on screen, choosing color themes, programming fonts, and syntax highlighting. When sharing a snippet on social media or in a blog post, plain text or a generic code block loses all of that styling. Polacode captures it and turns it into a shareable image. You can resize the snippet container by dragging a corner, and a few settings control the image appearance: whether to include a drop shadow, whether the background is transparent, and what background color to use. The extension uses a library called dom-to-image to convert the rendered panel to an image file. The project credits Carbon (a web-based tool for the same concept) as its inspiration and notes it was built on top of work by several open source contributors. The license is MIT. The README is short and the author has kept the scope intentionally narrow, noting that contributions are not especially welcome and that issues should be opened before making changes so the user experience stays simple.
← octref on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.