Universal.Web for Visual StudioWrite 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 JavaScriptGet 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.
The normal JavaScript language service remains available inside interpolation expressions. Ordinary local HTML helpers, including Browser modules and web componentsHover 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 toolsNative 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 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
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 scopeVersion 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. |