语法检测不友好

安装pylint_django

添加设置:在项目文件下的.vscode/settings.json文件中的"python.linting.pylintArgs"处添加"--load-plugins", "pylint_django",

"--disable-msg=['C0103','C0301','W0312','W0511','W0232','E1101']",

{
    "python.pythonPath": "/root/Envs/django2.2_axf_env/bin/python",
    "python.linting.pylintArgs":[
        "--load-plugins", "pylint_django",
        "--disable-msg=['C0103','C0301','W0312','W0511','W0232','E1101']",
    ],
}

参考链接:https://www.cnblogs.com/sky-heaven/p/6696700.html

posted on 2019-11-20 16:46  雨淋一号  阅读(1323)  评论(0编辑  收藏  举报