Settings
Keyboard Shortcuts
| Action | macOS | Windows/Linux |
|---|---|---|
| Open Rex | Cmd+Shift+R | Ctrl+Shift+R |
| Send request | Cmd+Enter | Ctrl+Enter |
| Save request | Cmd+S | Ctrl+S |
VS Code Commands
Rex registers two commands in the Command Palette (Cmd+Shift+P):
| Command | Description |
|---|---|
Rex: Open API Client | Open or reveal the main API client panel |
Rex: New Request Tab | Create a new request tab |
Import
Rex can import requests from multiple formats. Open the import dialog and either paste content or upload a file — Rex auto-detects the format.
| Format | Details |
|---|---|
| Postman Collection | v2.1 format with full request, auth, and body support |
| OpenAPI / Swagger | OpenAPI 3.x and Swagger 2.0 (JSON & YAML) |
| HAR | HTTP Archive 1.2 format |
| cURL | Paste a cURL command directly into the URL bar |
Export
Export your data in multiple formats:
| Format | Scope |
|---|---|
| Postman Collection | Any collection |
| HAR 1.2 | Any collection or full history |
| cURL | Individual request |
| JSON | Individual request |
Code Generation
Generate working code snippets from any request. Click the code generation button in the response panel toolbar.
Supported Languages
| Language | Libraries |
|---|---|
| JavaScript | Node.js http |
| Python | requests |
| Shell | cURL |
Generated snippets include authentication, headers, and body configuration. Copy to clipboard with one click.
API Documentation Viewer
Load an OpenAPI 3.x or Swagger 2.0 spec (from a file or URL) to browse API documentation inside Rex:
- Endpoints organized by tag with search
- Parameters, request body, and response schemas for each endpoint
- Security requirements
- Try it button pre-fills the request builder with the endpoint details
Storage
All Rex data is stored locally via VS Code’s extension globalState:
| Data | Storage |
|---|---|
| Collections | Saved request collections |
| Environments | Environment variable sets |
| Chains | Request chain definitions |
| History | Request history (capped at 50KB per response body) |
| Tabs | Active tab state and request configuration |
Data persists across VS Code sessions and survives window reloads.
Privacy
- All data stored locally in VS Code’s globalState
- No external API calls except to endpoints you specify
- No telemetry, analytics, or tracking
- No account system or cloud storage