当前位置:   article > 正文

在vscode中运行时的命令行参数设置_vscode 命令行参数

vscode 命令行参数

vscode在运行程序时可以指定某一个文件运行时的命令参数,通过设置lanuch.json就可以进行设置,如下所示:

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: argue-test.py",
            "type": "python",
            "args": [
                "food",
                "--girlfriend",
                "jingjing",
                "--house",
                "12"
            ],
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": true
        }
    ]
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/461208
推荐阅读
相关标签
  

闽ICP备14008679号