Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A beta VS Code extension that renders HTML element previews in hover tooltips.
Hover Preview is a beta VS Code extension that renders a live visual preview of an HTML element inside the editor's hover tooltip, so you can see what markup looks like in a browser without leaving your code.
Hover Preview is a Visual Studio Code extension that displays a rendered preview of HTML elements when you hover over them in the editor. It takes the HTML markup under your cursor and produces an in-editor visual snapshot of how that element would appear in a browser. The extension is currently limited to HTML files and is authored by Paul (GitHub: PaulleDemon). Because the project is in beta, it creates a temporary file named .hoverpreview.temp.html in your working directory to render the previews; the roadmap indicates this will change.
.html file and get an immediate visual render inside the tooltip.hoverPreview.previewSize setting, with both width and height defaulting to 200 pixels.The extension creates a temporary .hoverpreview.temp.html file in your active working directory and uses it to render the hovered HTML element, displaying the result in the tooltip. You must wait for the extension to fully load after installation before previews appear, and the current beta leaves the temp file behind.
Hover Preview is free to use. The source code is released under the AGPL license, which applies to the project itself and does not affect end users of the extension.
Yes, Hover Preview is a free, open-source extension. The code is licensed under AGPL, and there are no paid tiers or premium features listed.
Currently, Hover Preview only works with HTML files. It will not preview in other languages like JavaScript, CSS, or markdown files.
No. The preview is a static visual snapshot. You cannot click links, hover over nested elements, or play animations.
Open your VS Code settings.json and set hoverPreview.previewSize with width and height values. Both default to 200 pixels.
.hoverpreview.temp.html file appear in my project?That is a known behavior of the beta version. The extension generates this temporary file in your working directory to render the hover previews. The roadmap indicates this will change in future versions.
