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

Rex

Tim Caswell

|
6 installs
| (0) | Free
Rex language support for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rex for Visual Studio Code

Syntax highlighting for Rex — programmable JSON with small arms and a big bite.

Rex syntax highlighting

Features

  • Syntax highlighting for .rex files
  • Rex code blocks in Markdown (```rex)
  • Rex tagged template literals in TypeScript and JavaScript
  • Parser-backed diagnostics for .rex
  • Outline, Go to Definition, and Find References for local Rex symbols
  • Optional domain-aware completion and hover via .config.rex at workspace root

Domain Schema (.config.rex)

To provide domain API completions/hover without imports, add .config.rex in your repo root:

  • The extension reads only the current .config.rex format (data / functions entries with names, type, desc, optional args/returns).
{
  data: {
    H: {
      names: ['headers']
      type: 'object'
      desc: 'Inbound request headers'
    }
  }
}

Then in .rex files:

  • Typing headers. offers property completions
  • Hovering headers or headers.x-action shows type/docs

What is Rex?

Rex is a data format that extends JSON with high-level infix logic. Any valid JSON is already valid Rex, and you can add conditionals, assignment, loops, and comprehensions directly in source. Rex compiles to compact rexc bytecode that you can store, serialize, and diff like any other data.

actions = {
  create-user: "users/create"
  delete-user: "users/delete"
  update-profile: "users/update-profile"
}

when handler = actions.(headers.x-action) do
  headers.x-handler = handler
end

Learn more at github.com/creationix/rex.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft