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

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}"
        }
    ]
}


你可能感兴趣的:(visual studio code配置python开发环境的一点心得)