Polacode is a VS Code extension that converts code snippets into styled, shareable images. It functions as a dedicated code screenshot generator and image exporter, allowing users to capture selected code and render it as a polished visual for documentation, social media, or presentations.
The extension provides a dedicated editor pane where users can paste and preview code before generating a screenshot. It offers screenshot customization features including adjustable background color, shadow, transparency, and target image format, all managed through VS Code's settings system. The capture area can be resized by dragging the preview container's corner to control the final image dimensions.
The tool generates images entirely within the browser extension without server-side processing, using CSS-based styling and DOM-to-canvas rendering to produce the final output. This approach keeps the entire workflow contained within the editor environment.