Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>OxidNew to Visual Studio Code? Get it now.
Oxid

Oxid

Optersoft

|
3 installs
| (0) | Free
Templates, checks and completion for Oxid Python.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Oxid for VS Code

What an editor knows about html(t"…").

Inside a template string every other tool is blind — to a type checker it is one opaque str — so this is where the markup gets completed, documented and checked.

What it does

  • Diagnostics. The four things a template enforces and a type checker cannot see, because to it the whole template is one opaque str: a lambda in a template string's braces (name the function — it reads better in a hole), html(f"…") where a t-string was meant, HTML the browser's parser rewrites — a block element inside <p>, a <tr> straight under <table>, an <a> inside an <a> — and an <img> with no alt. The rewriting one is why a prerendered page fails to hydrate, and until now it was only ever discovered as a blank screen.
  • Completion. Elements, attributes per element, and oxid's own prefixes first: on:, oncapture:, prop:, class:, style:, bind:, attr: and ref. Inside on: it lists events, inside bind: the three targets, inside style: CSS properties. </ closes the innermost open element.
  • Hover on an element, an attribute, a prefix, and on oxid's own names in the Python around the template.
  • Go to definition on a component named inside {…} — the one position a Python language server cannot reach, because as far as it is concerned that name is a character in a string.
  • Highlighting, twice over: a TextMate injection grammar so markup is coloured before the server starts, and semantic tokens from the server, which knows exactly where a hole ends.
  • Oxid: New Project — an app (a page in the browser) or a server, in a new folder: it runs oxid new from the newest release, uv sync to make the project's .venv, and opens the folder. With no uv on the machine it installs it first, the same way the server does.
  • Commands for check, serve, build, prerender, site and tailwind. Serve opens the page when the server is up — inside VS Code or in your browser, asked once (oxid.serve.open).
  • Run as Desktop App and Run on Android for a project with [tool.oxid.app]. Android picks the only usable adb device or asks when there are several, installs and launches the APK, keeps its log in the terminal, and swaps Python saves into the running app without losing its state.
  • Snippets for the shapes a page starts from — fcomponent, fsignal, fmemo, feffect, fshow, ffor, fswitch, fresource, faction, floading, ferrored, fstate, fstore, frouter, fmount, fhtml, fisland — and for its server: fapp, froute, fsocket, fpolicy.

It stays out of Python's territory: no syntax errors, no completions for your own variables, nothing a type checker already says. Run it alongside Pylance or Pyright, not instead.

SQL

There are no .sq files any more: Oxid SQL's SQLDelight-style files, and the sql-gen compiler this extension bundled for them, are gone. SQL is written as a t"…" string in Python, and the Oxid language server checks it against the app's migrations, in the same diagnostics as the templates.

Settings

oxid.enable Run the server at all.
oxid.server.command How to start it. Empty means the workspace's .venv if it has oxid, else uvx --python 3.14 oxid lsp.
oxid.python A Python 3.14 interpreter to run it with.
oxid.trace.server Log the traffic, for when something is wrong.

Nothing to install

With no setting and no workspace .venv holding oxid, the server runs through uvx, which fetches the published oxid without installing anything — so uv is the one thing that has to be there, and if it is not, the extension installs it, with uv's own installer and without asking. It is a prerequisite, not a choice: someone opening their first app.py cannot tell a missing dependency from a broken extension, and a dialog about a package manager is not what they came here to learn. uv installs into your own home (~/.local/bin), touches nothing system-wide and needs no privileges. Only if that fails — offline, or a machine that does not allow it — do you get a message, with the command to run by hand.

uv is also looked for where the installer puts it — ~/.local/bin, ~/.cargo/bin, $UV_INSTALL_DIR, $XDG_BIN_HOME — and not only on PATH, then spawned by absolute path. A VS Code started from the dock inherits a PATH that usually has none of those in it, so a machine with uv on it otherwise presents as a machine without, and would be sent through an install it does not need.

Python 3.14 matters: template strings do not parse below it, so two of the four checks cannot fire. The server says so on connect rather than going quiet.

Building it

npm install
npm test
cd ../..
mk vscode.package  # oxid-<version>.vsix, one for every platform

The extension lives in the framework's own repository, at editor/vscode/, so the commit that changes a template rule changes the editor's understanding of it in the same diff.

Untrusted folders

In VS Code's Restricted Mode, Oxid still reads your files: completion, hover and the template rules work. It runs nothing of the folder's. The language server comes from PyPI, never the folder's .venv or its settings. Serve, builds, app runs and updates wait until you trust the folder, and the compiler and query checks start once you do.

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