VS Code 中Python 开发环境配置(Settings.json、launch.json、Tasks.json)

本文介绍了如何在Visual Studio Code中配置Python开发环境,包括设置tasks.json文件实现Python代码的一键运行,以及通过使用Dash插件来提升代码自动提示的速度。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Configuring Visual Studio Code for Python Development

配置Tasks.json

mac快捷键:cmd+shift+b
官方指导文档

我的 tasks.json python配置

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "taskName": "Python",
            "type": "shell",
            "command": "${workspaceRoot}/env/bin/python3.5",
            "args": [
                "${file}"
            ],
            "presentation": {
                "reveal": "always",
                "panel": "shared"
            },
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

Python 自动提示

自动提示实在是太慢了,我使用了dash,安装了插件,方便了太多了

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值