Open files in VS Code and Cursor / Code and APIs

Preview an HTML file with its CSS and images in VS Code

Install the free HTML Preview & HTML Viewer by Zovo, open an .html file and press Ctrl+K V (Cmd+K V on macOS). The page opens beside the editor with its linked CSS, JavaScript and images, and it updates as you type without saving. It needs no local web server and no port. If you need a real server, for example for fetch of local JSON, use Live Preview from Microsoft instead.

Install in VS CodeMarketplace pageOpen VSX (Cursor, Windsurf, VSCodium)JetBrains IDEs

Free, MIT license. Extension ID zovo.zovo-html-preview, version 0.2.1. Needs VS Code 1.90.0 or newer.

Also free from Zovo: Auto Rename Tag & Close Tag Sync, VS Code Marketplace · Open VSX (Cursor, Windsurf).

A small 3-file site in VS Code with index.html on the left and the live preview on the right, with its CSS, images and script working
A small 3-file site in VS Code with index.html on the left and the live preview on the right, with its CSS, images and script working.

Steps in VS Code

  1. Install HTML Preview from the Marketplace, or press Ctrl+P (Cmd+P on macOS) and run ext install zovo.zovo-html-preview.
  2. Open an .html file.
  3. Click the preview icon at the top right of the editor, or press Ctrl+K V (Cmd+K V on macOS). Your .html file stays a normal text editor.
  4. Pick a width from the Width list (320, 375, 768, 1024 or 1440 px) to see the page at phone, tablet or desktop size.
  5. Click Console to see console.log lines, script errors and linked files that were not found.

Steps in Cursor, Windsurf or VSCodium

  1. Open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on macOS).
  2. Search for zovo.zovo-html-preview and click Install. Cursor, Windsurf and VSCodium install from Open VSX, where it is published as zovo/zovo-html-preview.
  3. If your editor has no gallery, download the .vsix from the Open VSX page and run "Extensions: Install from VSIX...".
  4. Then use it the same way as in VS Code.

What HTML Preview handles

What it does not do

In JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, CLion and others)

Other options

Install counts and Open VSX status were checked on 9 November 2026. Descriptions in quotes are the extensions' own.

Questions

Do I need Live Server or a local web server?

Not for plain pages. HTML Preview reads the linked files through VS Code, so CSS, scripts and images work with no server. Pages that call fetch on local files or need PHP still need a server.

Does it work in Cursor?

Yes. It is on Open VSX, which is where Cursor, Windsurf and VSCodium get extensions.

Is it safe to preview a page I did not write?

The page runs in a sandboxed frame that cannot reach VS Code, your other files or the network. In Restricted Mode, scripts do not run at all.

More about HTML Preview

Read the HTML Preview page for every feature and setting, or the source code on GitHub.

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.

Need your format supported?

Open a format request with a sample file, and I reply there whether it can be done. For USD 299 once, through this GitHub Sponsors tier, I add your file format or a missing feature to this extension, with tests, within 7 days.