VSCode에서 파이썬 코드를 자동으로 정리하도록 설정하는 방법
안녕하세요! 파이썬으로 코드를 짜다가, 자동으로 code convention에 맞도록 설정할 수 있는 방법이 없을까 고민한 것을 블로그에 정리해보았습니다! 도움이 되었으면 좋겠습니다~ 💡 요약 1️⃣ formatter와 linter를 설치 - pip install black # formatter 설치 - pip install flake8 # linter 설치 2️⃣ vscode extension 설치 - 'python' - 'black formatter' - 'flake8' 3️⃣ .vscode/settings.json 파일에 아래의 코드 추가 "[python]": { "editor.defaultFormatter": "ms-python.black-formatter", "editor.formatOnSave": true },