博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
个人VS Code配置文件JSON
阅读量:2489 次
发布时间:2019-05-11

本文共 7311 字,大约阅读时间需要 24 分钟。

1、首选项设置JSON

{    "workbench.startupEditor": "newUntitledFile",    "team.showWelcomeMessage": false,    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",    "editor.fontSize": 16,    "workbench.colorTheme": "Monokai",    "editor.fontFamily": "Consolas",    "editor.wordWrap": "on"}

2、任务配置文件JSON

{    // See https://go.microsoft.com/fwlink/?LinkId=733558    // for the documentation about the tasks.json format    "version": "2.0.0",    "tasks": [        {            "label": "python",            "type": "shell",            "command": "C:/Users/yanta/AppData/Local/Programs/Python/Python36/python",            "args": [                "${file}"            ],            "group": {                "kind": "build",                "isDefault": true            }        }    ]}

3、调试配置JSON

{    // 使用 IntelliSense 了解相关属性。     // 悬停以查看现有属性的描述。    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387    "version": "0.2.0",    "configurations": [        {            "name": "Python",            "type": "python",            "request": "launch",            "stopOnEntry": false,            //"pythonPath": "C:/Python27/python",            "pythonPath": "C:/Users/yanta/AppData/Local/Programs/Python/Python36/python",            "program": "${file}",            "cwd": "${workspaceRoot}",            "env": {},            "envFile": "${workspaceRoot}/.env",            "debugOptions": [                "WaitOnAbnormalExit",                "WaitOnNormalExit",                "RedirectOutput"            ]        },        {            "name": "Python: Attach",            "type": "python",            "request": "attach",            "localRoot": "${workspaceRoot}",            "remoteRoot": "${workspaceRoot}",            "port": 3000,            "secret": "my_secret",            "host": "localhost"        },        {            "name": "Python: Terminal (integrated)",            "type": "python",            "request": "launch",            "stopOnEntry": true,            "pythonPath": "${config:python.pythonPath}",            "program": "${file}",            "cwd": "",            "console": "integratedTerminal",            "env": {},            "envFile": "${workspaceRoot}/.env",            "debugOptions": [                "WaitOnAbnormalExit",                "WaitOnNormalExit"            ]        },        {            "name": "Python: Terminal (external)",            "type": "python",            "request": "launch",            "stopOnEntry": true,            "pythonPath": "${config:python.pythonPath}",            "program": "${file}",            "cwd": "",            "console": "externalTerminal",            "env": {},            "envFile": "${workspaceRoot}/.env",            "debugOptions": [                "WaitOnAbnormalExit",                "WaitOnNormalExit"            ]        },        {            "name": "Python: Django",            "type": "python",            "request": "launch",            "stopOnEntry": true,            "pythonPath": "${config:python.pythonPath}",            "program": "${workspaceRoot}/manage.py",            "cwd": "${workspaceRoot}",            "args": [                "runserver",                "--noreload",                "--nothreading"            ],            "env": {},            "envFile": "${workspaceRoot}/.env",            "debugOptions": [                "WaitOnAbnormalExit",                "WaitOnNormalExit",                "RedirectOutput",                "DjangoDebugging"            ]        },        {            "name": "Python: Flask (0.11.x or later)",            "type": "python",            "request": "launch",            "stopOnEntry": false,            "pythonPath": "${config:python.pythonPath}",            "program": "fully qualified path fo 'flask' executable. Generally located along with python interpreter",            "cwd": "${workspaceRoot}",            "env": {                "FLASK_APP": "${workspaceRoot}/quickstart/app.py"            },            "args": [                "run",                "--no-debugger",                "--no-reload"            ],            "envFile": "${workspaceRoot}/.env",            "debugOptions": [                "WaitOnAbnormalExit",                "WaitOnNormalExit",                "RedirectOutput"            ]        },        {            "name": "Python: Flask (0.10.x or earlier)",            "type": "python",            "request": "launch",            "stopOnEntry": false,            "pythonPath": "${config:python.pythonPath}",            "program": "${workspaceRoot}/run.py",            "cwd": "${workspaceRoot}",            "args": [],            "env": {},            "envFile": "${workspaceRoot}/.env",            "debugOptions": [                "WaitOnAbnormalExit",                "WaitOnNormalExit",                "RedirectOutput"            ]        },        {            "name": "Python: PySpark",            "type": "python",            "request": "launch",            "stopOnEntry": true,            "osx": {                "pythonPath": "${env:SPARK_HOME}/bin/spark-submit"            },            "windows": {                "pythonPath": "${env:SPARK_HOME}/bin/spark-submit.cmd"            },            "linux": {                "pythonPath": "${env:SPARK_HOME}/bin/spark-submit"            },            "program": "${file}",            "cwd": "${workspaceRoot}",            "env": {},            "envFile": "${workspaceRoot}/.env",            "debugOptions": [                "WaitOnAbnormalExit",                "WaitOnNormalExit",                "RedirectOutput"            ]        },        {            "name": "Python: Module",            "type": "python",            "request": "launch",            "stopOnEntry": true,            "pythonPath": "${config:python.pythonPath}",            "module": "module.name",            "cwd": "${workspaceRoot}",            "env": {},            "envFile": "${workspaceRoot}/.env",            "debugOptions": [                "WaitOnAbnormalExit",                "WaitOnNormalExit",                "RedirectOutput"            ]        },        {            "name": "Python: Pyramid",            "type": "python",            "request": "launch",            "stopOnEntry": true,            "pythonPath": "${config:python.pythonPath}",            "cwd": "${workspaceRoot}",            "env": {},            "envFile": "${workspaceRoot}/.env",            "args": [                "${workspaceRoot}/development.ini"            ],            "debugOptions": [                "WaitOnAbnormalExit",                "WaitOnNormalExit",                "RedirectOutput",                "Pyramid"            ]        },        {            "name": "Python: Watson",            "type": "python",            "request": "launch",            "stopOnEntry": true,            "pythonPath": "${config:python.pythonPath}",            "program": "${workspaceRoot}/console.py",            "cwd": "${workspaceRoot}",            "args": [                "dev",                "runserver",                "--noreload=True"            ],            "env": {},            "envFile": "${workspaceRoot}/.env",            "debugOptions": [                "WaitOnAbnormalExit",                "WaitOnNormalExit",                "RedirectOutput"            ]        }    ]}

转载地址:http://tgarb.baihongyu.com/

你可能感兴趣的文章
mysql 如何提高批量导入的速度
查看>>
VMwareWorkstation设置U盘启动(或U盘使用)
查看>>
java中 set,list,array(集合与数组)相互转换
查看>>
Android客户端打包方案分享
查看>>
012.Adding a New Field --【添加一个新字段】
查看>>
2016年终总结
查看>>
项目Alpha冲刺Day4
查看>>
初始Linux
查看>>
【板+并查集判断连通性】并查集判断连通性
查看>>
C++的ORM工具比较
查看>>
CentOS安装glibc-2.14
查看>>
license文件生成原理
查看>>
static关键字
查看>>
未完成的控件
查看>>
怎么调处vs2010的MSDN帮助文档
查看>>
进程调试--进程启动VS自动附加
查看>>
HTML5学习笔记(五):CSS基础
查看>>
SVN版本回滚
查看>>
PHP程序性能优化的50种方法
查看>>
css3 动画的播放、暂停和重新开始
查看>>