Nexo for VS CodeSupport for Nexo, the language with one way to do each thing.
Installing NexoThe extension carries no language server of its own. It runs Nexo is not packaged yet, so it is installed from a clone of the repository. Either implementation serves: both answer the same requests with the same words.
Phase 0, the interpreterNeeds Python 3.12 or newer.
The command is then Phase 1, the compilerNeeds a Rust toolchain (
The command is then Pointing the extension at itOpen Settings (
The value is run as it is written: VS Code does not expand
If the path is wrong, the extension says so once, naming the command it tried: Nexo: cannot start "... lsp". Set nexo.path to the nexo command. The server's own log is in the Output panel, channel Nexo. Settings
Publishing from GitHub ActionsStore the publisher's Azure DevOps personal access token as the repository
Actions secret Push a If publishing reports Visual Web Builder (experimental)Run Nexo: Open Web Builder from the Command Palette. Add headings,
paragraphs, buttons, inputs, or rectangles ( Save design writes an editable versioned JSON document; Open design
restores it. Export .nexo saves the current generated The canvas edits absolutely positioned elements, with desktop, tablet and mobile
layouts. Change size in Properties or drag resize handles. Shift+click layers or
elements to arrange several at once; extract static selections into reusable
components. The canvas is a design surface. Use Live preview to execute source
state, input handlers and navigation in a browser. Freeform auto layout, images
and authoring runtime bindings in the inspector are not supported. Dynamic text
must be edited in source and is preserved when applying visual changes.
The generated component can be checked with To install a locally packaged build, use Extensions → … → Install from VSIX…
and select To try the extension from this repository:
Run Design System ManagerThe inspector includes a Design System Manager. Choose light or dark and edit the active palette: primary, on-primary, canvas background, surface, text and border colors. Font family, body and heading sizes, padding and corner radius are shared between both modes. Changes update the canvas and generated Nexo CSS immediately; exporting produces the currently selected theme. New elements use the design system. Buttons use primary/on-primary colors; other elements use surface/text colors. Use Apply theme to all elements to bind an existing design to the system. Existing JSON designs retain their original colors until you apply the theme. Theme edits and applying a theme support undo/redo. For an individual element, disable Use design system to use its custom colors, or edit its color/background directly to switch to custom styling. Enable the checkbox to restore the shared styles. Applying a theme to all elements replaces custom styling bindings; Undo restores them. Both palettes, shared settings and element bindings are saved with the design. Export design system writes the settings to a separate JSON file for reuse; Import design system loads them into another design. Imported settings affect theme-bound elements; custom elements keep their styling until you apply the theme. This is a design-time theme choice; runtime theme switching is not generated yet. Canvas editing toolsPreview desktop (960px), tablet (768px) and mobile (375px) canvas widths and zoom from 50% to 125%. The selected viewport is also the layout being edited: desktop supplies base geometry, tablet overrides apply at widths up to 768px, and mobile overrides apply at widths up to 480px. Enable Snap to 8px grid for pointer dragging. Drag distances respect zoom. Duplicate the selected element or change its stacking order with Send backward and Bring forward. Layer order is preserved in saved designs and exported components. The selected layer is highlighted. Use arrow keys to move by 1px, Shift+arrow for 10px, Delete/Backspace to remove, Ctrl/Cmd+D to duplicate, Ctrl/Cmd+Z to undo, and Ctrl/Cmd+Shift+Z or Ctrl/Cmd+Y to redo. Shortcuts leave property text fields and other inputs alone. Editing operations support undo/redo; merely selecting a viewport or changing zoom/grid controls does not change the design. Select an element to reveal eight edge and corner resize handles. Drag a handle to change its dimensions; resizing respects zoom and optional grid snapping. The opposite edge stays fixed when resizing from the top or left. Dimensions are bounded by the canvas coordinate limits (up to 10,000px). Each drag is one undo step. Width and Height in Properties remain available for exact sizes. Open automatically for web filesOpening or switching to a Automatic opening loads the current editor buffer, including unsaved changes, into the builder. Switching to another web file loads that file; manual Nexo: Open Web Builder loads the active web file. Reload source explicitly reimports it, discarding current canvas changes (which remain available in Undo). Import waits until the webview is ready. Source edits reload automatically while the canvas has no edits. If both source and canvas change, the builder keeps the canvas and reports a conflict instead of replacing either side. Undo restores the design from before an import. The importer reads the first public component/page and supported static elements (h1, h2, p, button, input, div). It supports literal text and basic pixel geometry and six-digit hex colors from simple tag/class CSS selectors. Other layout is approximated as a vertical wireframe. Runtime state, event handlers, interpolation, custom components, control flow and advanced CSS are not reproduced; a partial import notice lists limitations. Import never runs source code. Files without supported elements show an error and keep the current design. Import leaves the original file unchanged. Apply to source explicitly updates the linked editor buffer; normal VS Code Save and Undo remain available. Export .nexo creates a standalone static component; use Apply to source to preserve the original file's runtime logic. Apply canvas changes to sourceApply to source updates the imported elements' literal text, visual styling, responsive geometry and stacking order. It also adds new elements and removes deleted elements. Existing state, functions, event handlers, dynamic text, unsupported view nodes and handwritten CSS remain in the file. Builder CSS is kept in a marked block rather than replacing handwritten styles. The file includes a visual metadata comment so component instances, groups, themes and breakpoint overrides can be restored. Runtime-only edits retain this metadata; manual view/style changes trigger a fresh static import. Updates target the exact source revision that was loaded. If the editor has changed meanwhile, use Reload source before applying. Save the design as JSON first if you want to keep conflicting canvas edits. Undoing an import from another file cannot apply an old design to the newly linked file. Dynamic text/class expressions and removal of nested source containers are deliberately rejected when they cannot be patched while preserving their contents. Responsive layout editingChoose Desktop, Tablet or Mobile, then drag, resize, align, or edit X/Y/Width/Height. Tablet inherits desktop values; mobile inherits tablet and desktop values unless overridden. Generated Nexo includes scoped CSS media queries. Text and theme changes are shared across breakpoints. Reset breakpoint overrides resets the selection, or all elements if none are selected. Zoom does not affect exported size. Reusable componentsShift+click a static selection, name it (for example Extract components before adding breakpoint overrides to their children; the instance wrapper can then have its own responsive geometry. Nested reusable instances and extracting source elements with runtime bindings are rejected. Those bindings continue to work in their original source component and preview. Alignment, distribution and groupsShift+click elements or layers to select several. Align left/center/right or top/middle/bottom. Distribution requires at least three elements and preserves the outer edges while equalizing horizontal or vertical gaps. Group makes a selection move together when dragging or nudging; Ungroup separates it. Groups are editing metadata, not extra DOM containers. Delete removes the selection. These operations are undoable and apply to the active breakpoint. Interactive previewChoose Live preview to compile the canvas together with the linked source's runtime logic and open a local browser preview. Buttons, inputs, state and routes use the actual Nexo web runtime. Canvas edits rebuild after a short delay; the browser reloads after a successful build. Compiler failures keep the last working preview and show diagnostics in the builder. Clean source edits also update the preview. Stop preview or closing the builder closes its local server and removes temporary build files. Reloading a build resets application state. Preview requires a trusted workspace and a working |