]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Add documentation for the FastAPI VS Code extension (#15008)
authorSavannah Ostrowski <savannah@python.org>
Thu, 5 Mar 2026 11:27:12 +0000 (03:27 -0800)
committerGitHub <noreply@github.com>
Thu, 5 Mar 2026 11:27:12 +0000 (12:27 +0100)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
docs/en/docs/editor-support.md [new file with mode: 0644]
docs/en/docs/tutorial/index.md
docs/en/mkdocs.yml

diff --git a/docs/en/docs/editor-support.md b/docs/en/docs/editor-support.md
new file mode 100644 (file)
index 0000000..51feb54
--- /dev/null
@@ -0,0 +1,23 @@
+# Editor Support { #editor-support }
+
+The official <a href="https://marketplace.visualstudio.com/items?itemName=FastAPILabs.fastapi-vscode" class="external-link" target="_blank">FastAPI Extension</a> enhances your FastAPI development workflow with *path operation* discovery, navigation, as well as FastAPI Cloud deployment, and live log streaming.
+
+For more details about the extension, refer to the README on the <a href="https://github.com/fastapi/fastapi-vscode" class="external-link" target="_blank">GitHub repository</a>.
+
+## Setup and Installation { #setup-and-installation }
+
+The **FastAPI Extension** is available for both <a href="https://code.visualstudio.com/" class="external-link" target="_blank">VS Code</a> and <a href="https://www.cursor.com/" class="external-link" target="_blank">Cursor</a>. It can be installed directly from the Extensions panel in each editor by searching for "FastAPI" and selecting the extension published by **FastAPI Labs**. The extension also works in browser-based editors such as <a href="https://vscode.dev" class="external-link" target="_blank">vscode.dev</a> and <a href="https://github.dev" class="external-link" target="_blank">github.dev</a>.
+
+### Application Discovery { #application-discovery }
+
+By default, the extension will automatically discover FastAPI applications in your workspace 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 using module notation (e.g. `myapp.main:app`).
+
+## Features { #features }
+
+- **Path Operation Explorer** - A sidebar tree view of all <dfn title="routes, endpoints">*path operations*</dfn> in your application. Click to jump to any route or router definition.
+- **Route Search** - Search by path, method, or name with <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>E</kbd> (on macOS: <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>E</kbd>).
+- **CodeLens Navigation** - Clickable links above test client calls (e.g. `client.get('/items')`) that jump to the matching *path operation* for quick navigation between tests and implementation.
+- **Deploy to FastAPI Cloud** - One-click deployment of your app to <a href="https://fastapicloud.com/" class="external-link" target="_blank">FastAPI Cloud</a>.
+- **Stream Application Logs** - Real-time log streaming from your FastAPI Cloud-deployed application with level filtering and text search.
+
+If you'd like to familiarize yourself with the extension's features, you can checkout the extension walkthrough by opening the Command Palette (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> or on macOS: <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>) and selecting "Welcome: Open walkthrough..." and then choosing the "Get started with FastAPI" walkthrough.
index 7212a0c4a9cd26e647f06f1839290cec547862da..acd1a2d017c5a9d89f04ed4d272df82d2add58cb 100644 (file)
@@ -84,6 +84,12 @@ If you want to install the standard dependencies but without the `fastapi-cloud-
 
 ///
 
+/// tip
+
+FastAPI has an <a href="https://marketplace.visualstudio.com/items?itemName=FastAPILabs.fastapi-vscode" class="external-link" target="_blank">official extension for VS Code</a> (and Cursor), which provides a lot of features, including a path operation explorer, path operation search, CodeLens navigation in tests (jump to definition from tests), and FastAPI Cloud deployment and logs, all from your editor.
+
+///
+
 ## Advanced User Guide { #advanced-user-guide }
 
 There is also an **Advanced User Guide** that you can read later after this **Tutorial - User guide**.
index 78f03bf44377422a6738c77149a9dd59951ec34b..0db3e7a95b00bfafe4fc10573a4e2b92705f1d6a 100644 (file)
@@ -198,6 +198,7 @@ nav:
     - advanced/json-base64-bytes.md
     - advanced/strict-content-type.md
   - fastapi-cli.md
+  - editor-support.md
   - Deployment:
     - deployment/index.md
     - deployment/versions.md