您的位置:首页 > 编程语言 > Python开发

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

2016-12-30 23:06 896 查看
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}"
        }
    ]
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: