Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>run-python-mNew to Visual Studio Code? Get it now.
run-python-m

run-python-m

jack-duo

|
6,335 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode Python -m 极速运行增强插件

VS Marketplace Installs MIT

icon

让你的 Python 项目在 VSCode 中以最优雅、最专业的方式运行!


🖼️ 使用场景

解决 VSCode 中 Python 相对路径引用难题

多种运行方式,极致便捷


⚙️ 高级功能与配置

配置项 类型 默认值 说明
pyrun.pythonPath string python3 自定义 python 命令路径(如 python3、python、/usr/bin/python3 等),用于运行 python -m。
pyrun.saveBeforeRun boolean false 运行前是否自动保存当前文件。
pyrun.enableContextMenu boolean true 是否在右键菜单显示运行按钮。
pyrun.enableEditorButton boolean true 是否在编辑器标题栏显示运行按钮。
pyrun.enableRunMenu boolean true 是否在顶部运行菜单显示运行按钮。

配置页面

配置示例:

{
  "pyrun.pythonPath": "pwd && python",
  "pyrun.saveBeforeRun": true,
  "pyrun.enableContextMenu": true,
  "pyrun.enableEditorButton": false,
  "pyrun.enableRunMenu": true
}

该配置将在运行前输出当前目录并自动保存当前文件,只在右键菜单和顶部运行菜单显示按钮。


📚 开源与贡献

本插件开源,欢迎 Issue、PR 与建议!

📝 许可证

本插件遵循 MIT 许可证,详情请查看 LICENSE 文件。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft