Visual studio code suppress pep8 warnings

后端 未结 10 1280
滥情空心
滥情空心 2021-01-31 14:52

How can I suppress pep8 warnings, in Visual studio code? What I want to do is to suppress E501 warning I don\'t want to get warnings where my code length is more than 80 chars.

10条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 15:26

    What worked for me was adding the code snippet below to my user settings.json file. This was mentioned above but without the settings.json.

    "python.linting.flake8Enabled": true,
    "python.linting.flake8Args": ["--ignore=E501"]
    

提交回复
热议问题