美文网首页Visual Studio Code
vscode 默认配置全局debug方式

vscode 默认配置全局debug方式

作者: 旭日丶丶 | 来源:发表于2018-05-22 10:02 被阅读13次

如果我想在任何一个新建项目中默认加载debug方式, 不用重复创建launch.json文件, 则可将launch.json中最外层{}内的内容放到user setting中,

"launch": {
        // Use IntelliSense to learn about possible attributes.
        // Hover to view descriptions of existing attributes.
        // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Python: Current File",
                "type": "python",
                "request": "launch",
                "program": "${file}"
            },
          ]
},

相关文章

网友评论

    本文标题:vscode 默认配置全局debug方式

    本文链接:https://www.haomeiwen.com/subject/poxhjftx.html