Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Universal.Web
Universal.Web

Universal.Web

Andrew Ong

|
1 install
| (0) | Free
Browser module JSDoc hover and Universal.Web template and binding completion using the shared uw language server.
Download

Universal.Web for Visual Studio

Write browser-native JavaScript, HTML, CSS, and web components with completion, hover documentation, diagnostics, and editing assistance inside template strings. Universal.Web works with ordinary HTML templates and adds binding-specific assistance when you use Universal.Web.Binding.

HTML and CSS inside JavaScript

Get HTML tag and attribute completion, automatic closing tags, linked tag editing, indentation, matching markers, folding, and selection expansion inside supported templates. Embedded CSS receives syntax coloring, property and value completion, custom-property suggestions, and color previews.

import { html } from 'Universal.Web.Binding';

const greeting = html`
  <section class="greeting">
    <h1>Hello, web.</h1>
    <button @click=${() => console.log('Hello!')}>Say hello</button>
  </section>
`;

The normal JavaScript language service remains available inside interpolation expressions. Ordinary local HTML helpers, including String.raw, and other libraries' HTML templates receive standard HTML assistance. Binding templates additionally receive event, property, boolean, and two-way binding completions.

Browser modules and web components

Hover imported browser-module names to read source JSDoc, and follow imports and re-exports to their definitions. The extension resolves relative and HTTP(S) module URLs, inline import maps, aliases, namespace imports, and supported literal dynamic imports. Inline module scripts work without adding an npm package or declaration files.

HTML assistance includes custom elements, slots, parts, and declarative shadow-root attributes. Static component declarations and Custom Elements Manifests supply project tags and members. Project CSS and public asset mappings provide class, ID, custom-property, and path suggestions.

Diagnostics and editing tools

Native squiggles and the Error List report supported template, HTML, CSS, and binding diagnostics. Lightbulbs offer selected fixes such as duplicate-attribute removal and image alt attributes for review. Format Document and Format Selection add conservative embedded formatting while preserving interpolation programs, backend expressions, escapes, and significant text.

Tools commands provide embedded formatting, matching-tag navigation, bounded HTML abbreviation expansion, resource-resolution explanations, and source navigation. CSS Quick Info shows source rules from local and linked stylesheets. Optional browser-connected previews show computed styles and dimensions when configured in .universalweb.json.

JavaScript, TypeScript, and HTML script blocks are supported. Source adapters also assist literal markup in Razor, EJS, JSP, Handlebars, Thymeleaf, and Pug while keeping backend programs opaque.

Getting started

  1. Install the extension in Visual Studio 2022 version 17.14 or later, or Visual Studio 2026, on Windows x64.
  2. Open a JavaScript, TypeScript, or HTML file and start editing a supported HTML or CSS template.
  3. Use Tools > Options > Universal.Web > Tooling to customize editing behavior. Leave the external tool-path override empty for normal use.

The extension includes its language server and .NET runtime. No separate .NET installation, global tool, or PATH configuration is required. Universal.Web.Binding is only needed by applications using its runtime bindings; it is not required for ordinary HTML/CSS assistance.

Current scope

Version 0.1.0 is an early release. Native integration is exercised in an isolated Visual Studio 2026 experimental host on Windows x64.

Browser-module hover reads retained source JSDoc; it does not replace JavaScript or TypeScript type checking. Remote module sources are cached for five minutes and never executed by source analysis. Component discovery and project indexing are bounded; generated components need explicit metadata. Local rename covers supported source structures rather than project-wide runtime identities. Abbreviation expansion supports a subset of Emmet, and synthetic Pug projections are not formatted.

Universal.Web is released under CC0-1.0. Bundled dependencies retain their own included licenses.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft