Bidirectional schema converter extension for VS Code — convert between SQL DDL, Prisma, Django, TypeORM, SQLAlchemy, Alembic, JSON Schema, GraphQL, EF Core, and Scala case classes.
Part of the DevForge open-source CLI tool suite by Revenue Holdings.
- Live Preview — side panel showing your active schema file converted to all 11 formats
- Quick Convert —
Ctrl+Alt+Sto convert the active editor's schema to your target format - Format Detection —
Ctrl+Alt+Dto detect schema format - Schema Diff — diff two schema files in VS Code's native diff editor
- Right-Click — convert or detect from the file explorer context menu
- Custom Editor — rich conversion preview for
.schemaforgefiles
Requires SchemaForge CLI installed:
pip install schemaforgeThe CLI must be available on your PATH.
| Setting | Default | Description |
|---|---|---|
schemaforge.cliPath |
schemaforge |
Path to the schemaforge CLI executable |
schemaforge.defaultTargetFormat |
sql |
Default conversion target (sql, prisma, django, sqlalchemy, alembic, json_schema, graphql, ef, scala) |
schemaforge.livePreview.enabled |
true |
Enable live preview when editing schema files |
| Command | Keybinding | Description |
|---|---|---|
| SchemaForge: Convert Schema File... | — | Select a schema file and target format to convert |
| SchemaForge: Quick Convert (Active Editor) | Ctrl+Alt+S (Cmd+Alt+S on Mac) |
Convert the active editor content to default target format |
| SchemaForge: Diff Two Schema Files | — | Select two files and view differences |
| SchemaForge: Detect Format | Ctrl+Alt+D (Cmd+Alt+D on Mac) |
Detect the format of the active editor's content |
# Clone
git clone https://github.com/Coding-Dev-Tools/vscode-schemaforge.git
cd vscode-schemaforge
# Install dependencies
npm install
# Compile
npm run compile
# Lint
npm run lint
# Launch Extension Development Host
# Press F5 in VS Codesrc/
├── extension.ts # Extension entry point + activation
├── cli.ts # SchemaForge CLI wrapper
├── commands/
│ ├── convert.ts # Convert command handler
│ ├── detect.ts # Format detection handler
│ └── diff.ts # Schema diff handler
├── panels/
│ └── previewPanel.ts # Live preview WebView panel
└── providers/
└── schemaEditorProvider.ts # Custom editor provider
MIT — see LICENSE for details.