其他分享
首页 > 其他分享> > [转载] 消除vscode安装pylint后提示的unused variable

[转载] 消除vscode安装pylint后提示的unused variable

作者:互联网

参考链接: 使用direnv和pyenv管理Python环境

vscode

 消除vscode安装pylint后提示的unused variable查看代码复制代码

 

 

消除vscode安装pylint后提示的unused variable 

查看代码 

把标记的那段代码放到你的vscode的setting.json文件里。  

复制代码 

{

    "python.pythonPath": "C:\\Users\\intern\\AppData\\Local\\Programs\\Python\\Python37\\python.exe",

    "editor.fontSize": 28,

 

    "python.venvPath": "C:\\Users\\intern\\Envs",

    "python.venvFolders": [

        "envs",

        ".pyenv",

        ".direnv",

        ".env",

      ],

    "files.autoSave": "afterDelay",

    "editor.tabSize": 10,

    "terminal.integrated.fontSize": 23,

    "editor.accessibilityPageSize": 15,

    "python.linting.pylintArgs": [

      "--disable=E1101",

      "--disable=W,C"

    ]

}

标签:vscode,代码,pylint,unused,python,editor
来源: https://blog.csdn.net/u013946150/article/details/113822996