컴퓨터관련 쪽지
[VScode] python formatting black 설정
프들이
2021. 8. 26. 14:11
기본적인 것은
https://dev.to/adamlombard/how-to-use-the-black-python-code-formatter-in-vscode-3lo0
VSCode: Using Black to automatically format Python
How to configure the Black Python code formatter in VSCode
dev.to
을 참조하였다.
다만 나의 경우 차이점은 WSL Remote Server 에 설정을 하였다는 것이다.
이 경우 settings.json 은 $HOME/.vscode-server/data/Machine 에 저장이 되고 다음 두 줄이 추가 된다.
"python.formatting.provider": "black",
"editor.formatOnSave": true
반응형