Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>uv runNew to Visual Studio Code? Get it now.
uv run

uv run

jcdj666

|
4,697 installs
| (2) | Free
run python with uv run
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

uv-run README

Features 功能

When you use uv for project management, you need to run the code using uv run xxx.py. This plugin adds an icon in the top right corner, and clicking it will automatically execute uv run.

当你使用uv进行项目管理时,需要使用uv run xxx.py运行代码,这个插件在右上角添加了一个图标,点击它即可自动 uv run。

🎉🎉🎉
Now supports automatic running of Fastapi service via uv run fastapi dev

现已支持Fastapi服务自动运行uv run fastapi dev

According to the official recommendations of Fastapi, you can configure the location of the application in the pyproject.toml file, for example:

依据Fastapi官方建议,你可以在 pyproject.toml 文件中配置应用的位置,例如:

[tool.fastapi]
entrypoint = "main:app"

If your code structure is as follows:

如果你的代码结构如下:

├── backend
│   ├── main.py
│   ├── __init__.py

Then you can set the entrypoint as:

那么你可以将 entrypoint 设置为:

[tool.fastapi]
entrypoint = "backend.main:app"

Regardless of the above method, when you open the main.py file, simply clicking the uv-run button will automatically execute uv run fastapi dev.

无论以上何种方式,当你打开main.py文件时,点击uv-run按钮即可自动运行uv run fastapi dev。
🎉🎉🎉

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft