VSCode 파이썬 린트 라인길면 다음라인으로

settings.json 파일에 아래와 같이 코드 추가

    "[python]": {
        "editor.formatOnSave": true,
        "editor.formatOnType": true,
        "editor.defaultFormatter": "ms-python.black-formatter"
    },
    "black-formatter.args": ["--line-length","120"],

자동으로 120자 이상인 경우 멀티라인으로 라인을 정리해줌

참고사이트

https://code.visualstudio.com/docs/python/formatting




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • a post with plotly.js
  • a post with image galleries
  • a post with tabs
  • a post with typograms
  • a post that can be cited