Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>HTML Design ViewNew to Visual Studio Code? Get it now.
HTML Design View

HTML Design View

ecec

|
244 installs
| (0) | Free
Dreamweaver-style visual editing for HTML files — click any text element to edit inline, changes sync back to source.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HTML Design View

A Dreamweaver-style "Design View" for VS Code. Open any HTML file and see it rendered — click any text element to edit it inline. Changes sync back to the source file and join the undo stack.

Usage

  1. Open an .html file in VS Code.
  2. Click the eye icon (👁) in the editor title bar, or run
    HTML: Open Design View from the Command Palette (Ctrl+Shift+P).
  3. A preview panel opens to the right of your editor.
  4. Click any paragraph, heading, list item, table cell, etc. to edit it.
  5. The code updates as you type, a few times a second. When you're done, click elsewhere or press Enter (for headings); Escape undoes your changes to that element, in the code too.
  6. The file is marked as changed — save with Ctrl+S as usual.

Cursor and selection sync

The Design View and the code editor follow each other:

  • Design → code: click anywhere (text, an image, a section's empty space) and the code cursor moves to that exact spot. Highlight text and the same text is highlighted in the code. The code editor marks the spot in amber.
  • Code → design: move the cursor or highlight text in the code and the Design View shows the same spot: an amber caret, highlighted text, or a box around the element whose tag the cursor is on. It scrolls there if needed.

Neither side takes focus from the other, so you can keep typing where you are.

Toolbar

A toolbar runs along the top of the Design View:

  • Block format (Paragraph, Heading 2–6) changes the tag of the element you're editing.
  • Bold, Italic, Link, Superscript format the text you've selected while editing. Shortcuts: Ctrl+B, Ctrl+I, Ctrl+K.
  • Bulleted list / Numbered list turn the paragraph you're editing into a list.
  • WET turns the WET styling preview on or off (see below). The page stays editable either way.
  • Light / Dark switches the page canvas. Light shows the page white, as it will be published; Dark shows it dark, easier on the eyes. Until you pick one, the canvas follows VS Code: light with a light theme, dark with a dark theme. Your choice is remembered.
  • EN / FR opens the English or French version of the page beside this one (see below).
  • Properties shows or hides the properties panel.

The Design View's own menus, panels and highlights follow your VS Code theme (light, dark or high contrast).

Properties panel

Click any element to see its tag and its id, class, title and lang (plus href for links and alt for images). Change a value and press Enter to write it to the source; clear it to remove the attribute; Escape restores it.

WET styling preview

Pages built on WET (the Web Experience Toolkit), like Statistics Canada's, load their styles and shared parts (header, menu, footer) from their website, through site paths like /wet-boew4b/... and server-side includes (<!--#include virtual="..."-->). Opened from disk, those don't resolve, so the page looks unstyled.

Click WET in the toolbar and the Design View loads these from the page's site, so the page looks as it will when published. It's off until you turn it on, and your choice is remembered; nothing is fetched while it's off. The site is Statistics Canada's (https://www150.statcan.gc.ca) unless you change it:

"htmlDesignView.siteRoot": "https://www.example.gc.ca"

Include content is shown in place, outlined on hover; it isn't editable, and clicking it shows its include line in the code. An include that can't be loaded shows a small labelled placeholder. The page stays editable with the toggle on or off.

Settings:

  • htmlDesignView.siteRoot: the site the WET toggle loads site paths and includes from (default https://www150.statcan.gc.ca). Empty disables the toggle.
  • htmlDesignView.showIncludes: load server-side includes (default on).

This needs internet access. If the site is slow or unreachable, the page is shown without includes after a few seconds.

Accessibility checks

The source is checked as you edit, and issues appear as squiggles in the code and in VS Code's Problems panel: images without alt text, empty links, skipped heading levels or more than one <h1>, a page lang that doesn't match -eng / -fra, duplicate ids, tables without header cells, and vague link text ("click here", "cliquez ici"…).

English/French side by side

Click EN / FR in the toolbar, or run HTML: Open English/French Pair, to open the matching -eng / -fra file (same folder) in a second Design View beside the first. Scrolling one scrolls the other to the same section (matched by element id), so you can compare the two versions.

Keyboard shortcuts (while editing an element)

Key Action
Escape Cancel — restore the original text (in the page and the code)
Enter Commit (headings, td, th, a, label, span only)
Ctrl+Z Undo the last committed edit (via VS Code's undo stack)

More

  • Live sync, both ways: typing in the Design View updates the code as you go, and editing the code refreshes the Design View (keeping your scroll position). Each pause in typing is one undo step in the code.
  • Saved edits briefly flash green once they're written to the source.
  • Paste from Word or Google Docs keeps bold, italic, underline, links, lists and line breaks, and drops Word's styling clutter.
  • Edits go through VS Code's undo stack, and the file is marked as changed: save with Ctrl+S as usual.

Notes

  • JavaScript in the previewed HTML does not run (blocked by the webview's security policy). Styles, images and fonts load normally.
  • The extension tags elements with data-dv-* attributes in the preview only; they're never written to your file.
  • Each file gets its own Design View.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft