首页 > 其他 > 详细

vscode 配置格式化代码

时间:2021-06-11 10:50:10      阅读:19      评论:0      收藏:0      [点我收藏+]

VSCode  docs

1.vscode配置 yapf ,格式化代码

{
    "workbench.editorAssociations": [
        {
            "viewType": "jupyter.notebook.ipynb",
            "filenamePattern": "*.ipynb"
        }
    ],
    "files.insertFinalNewline": true,
    "files.autoSave": "afterDelay",
    "python.formatting.provider": "yapf",
    "editor.formatOnSave": true,
    "python.formatting.yapfArgs": [
        "--style={based_on_style: pep8, indent_width: 4}"
    ],
    "editor.detectIndentation": false,
}

 

vscode 配置格式化代码

原文:https://www.cnblogs.com/yan-2010/p/14872696.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!