Language support for .morph schema files: algebraic code generation from domain schemas.
What it does
Syntax highlighting for .morph files
Bracket matching, comment toggling, auto-closing pairs via language configuration
Morph: Template Schema command to scaffold a new schema from the command palette
Try it
Install this extension.
Open or create a file with the .morph extension.
Start writing — keywords, identifiers, and string literals will be highlighted.
domain Pastebin
extensions {
storage [memory, sqlite, redis] default memory
}
context pastes "Simple pastebin for sharing text snippets." {
@root
entity Paste "A text snippet shared via URL." {
content: string "The paste content"
expiresAt: timestamp? "Optional expiry"
}
command create(content: string, expiresAt: timestamp?) -> Paste
query getById(id: PasteId) -> Paste?
}
Generate apps from your schema
The extension provides editor support for authoring schemas. To generate a full backend, CLI, MCP server, and web UI from a .morph file, use the @morphdsl/cli: