// Provider for formatting. Possible options include 'autopep8' and 'yapf'.
"python.formatting.provider": "autopep8",
# autopep8 설치 (Python Enhancement Proposals)
pip install pep8
# yaf 설치 (Yet Another Python Formatter)
pip install yapf
# 포맷팅 적용
# vscode 1.7 부터 editor.action.format -> editor.aciton.formatDocument 로 변경되었다.
shift + alt + f
# 참고
https://github.com/DonJayamanne/pythonVSCode/wiki/Formatting
https://code.visualstudio.com/updates
comments:
댓글 쓰기