https://github.com/fastapi/fastapi-vscode
VS Code extension for FastAPI and friends ✨
https://github.com/fastapi/fastapi-vscode
api cursor-extension fastapi framework python vscode vscode-extension
Last synced: about 23 hours ago
JSON representation
VS Code extension for FastAPI and friends ✨
- Host: GitHub
- URL: https://github.com/fastapi/fastapi-vscode
- Owner: fastapi
- License: mit
- Created: 2026-01-07T17:56:53.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-04-03T17:54:46.000Z (2 days ago)
- Last Synced: 2026-04-03T20:28:18.346Z (2 days ago)
- Topics: api, cursor-extension, fastapi, framework, python, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=FastAPILabs.fastapi-vscode
- Size: 67.6 MB
- Stars: 308
- Watchers: 2
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Support: SUPPORT.md
Awesome Lists containing this project
README
# FastAPI extension for Visual Studio Code
A Visual Studio Code extension for FastAPI application development. Available on the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=FastAPILabs.fastapi-vscode).
## Overview
This extension enhances the FastAPI development experience in Visual Studio Code by providing:
### Path Operation Explorer
The Path Operation Explorer provides a hierarchical tree view of all FastAPI routes in your application. You can expand routers to see their associated path operations, and click on any route to jump directly to its definition in the code. You can also jump to router definitions by right-clicking on a router node.

### Search for routes
Using ctrl+shift+E (cmd+shift+E on Mac), you can open the Command Palette and quickly search for routes by path, method, or name.

### CodeLens for test client calls
CodeLens links appear above HTTP client calls like `client.get('/items')`, letting you jump directly to the matching route definition.

### Deploy to FastAPI Cloud
Deploy your application directly to [FastAPI Cloud](https://fastapicloud.com/) from the status bar with zero config or frustration.

### View FastAPI Cloud application logs
View real-time logs from your FastAPI Cloud deployed applications directly within VS Code, with support for filtering by log level and text search.

## Settings and customization
| Setting | Description | Default |
|---------|-------------|---------|
| `fastapi.entryPoint` | Entry point for the main FastAPI application in module notation (e.g., `my_app.main:app`). If not set, the extension searches `pyproject.toml` and common locations. | `""` (auto-detect) |
| `fastapi.codeLens.enabled` | Show CodeLens links above test client calls (e.g., `client.get('/items')`) to navigate to the corresponding route definition. | `true` |
| `fastapi.cloud.enabled` | Enable FastAPI Cloud integration (status bar, deploy commands). | `true` |
| `fastapi.telemetry.enabled` | Send anonymous usage data to help improve the extension. See [TELEMETRY.md](TELEMETRY.md) for details on what is collected. | `true` |
The extension automatically discovers your FastAPI app by scanning for files that instantiate `FastAPI()`. If auto-detection doesn't work for your project structure, you can specify an entrypoint via `[tool.fastapi]` in `pyproject.toml` or the `fastapi.entryPoint` VS Code setting.
## Data and telemetry
The FastAPI extension collects anonymous usage data and sends it to FastAPI to help improve the extension. You can disable telemetry by setting `fastapi.telemetry.enabled` to `false`. Read our [TELEMETRY.md](TELEMETRY.md) for details on what we collect and what we don't.
## License
MIT