visual studio code配置python开发环境的一点心得

来源:互联网 发布:方舟生存进化优化设置 编辑:程序博客网 时间:2024/04/29 14:23

settings.json


{
"files.exclude": {
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/.DS_Store": true,
    "**/*.pyc": true
}
,
"files.encoding": "gb18030",
"editor.renderControlCharacters": true,
"editor.renderWhitespace":"boundary",
"editor.wrappingColumn": 0,
// 保存py脚本时,自动执行pyflake检查
"emeraldwalk.runonsave": {
    "commands": [
        {
            "match": "\\.py$",
            "isAsync": true,
            "cmd": "python E:/develop/Python27/Scripts/pyflakes ${file}"
        }
    ],
    "autoClearConsole": true
}
}


Run on Save - emeraldwalk
    保存时,执行某些命令:如检查文件之类的
    https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave
// 保存py脚本时,自动执行pyflake检查
"emeraldwalk.runonsave": {
    "commands": [
        {
            "match": "\\.py$",
            "isAsync": true,
            "cmd": "python E:/Python27/Scripts/pyflakes ${file}"
        }
    ]
}


0 0
原创粉丝点击