3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【VSCode】black : pythonのfomatterを導入

Posted at

背景

fomatterで有名なのがC++ならc-lang, pythonであればblack いつも使ってるblackのインストール方法をメモ

install

blackをインストール

pip install black

pythonのextensionをinstall
image.png

gedit ~/.config/Code/User/settings.jsonで以下の2行を追加する

"python.formatting.provider": "black",
"editor.formatOnSave": true,

結論

・formatterあると便利!

参考文献

VSCode: Using Black to automatically format Python https://dev.to/adamlombard/how-to-use-the-black-python-code-formatter-in-vscode-3lo0
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?