Black Formatting | Python Black Formatter VSCode | Using Black to automatically format Python VSCode

preview_player
Показать описание
Black is "the uncompromising Python code formatter." It can be configured to automatically format your code whenever you save a file in VSCode.

Install Black in your virtual environment:
$ pip install black
Open your VSCode settings, by going 'Code - Preferences - Settings'.

Search for "python formatting provider" and select "black" from the dropdown menu:
In the settings, search for "format on save" and enable the "Editor: Format on Save" option:
Black will now format your code whenever you save a *.py file.
Рекомендации по теме
Комментарии
Автор

dude, absolutely dope background music

adicide
Автор

Very little information for 6 minutes. Too slow, bro!

evgenyocean
Автор

bro please help !! mine is showing this error : Failed to run black. Error: Stderr: Usage: python -m black [OPTIONS] SRC ... Try 'python -m black -h' for help.

bharatsahay
Автор

Maybe you should have explained more verbally, otherwise good.

paulwest
Автор

so how many times are you installing black ?

piotr
Автор

why mine auto format dont work already installed ll

mktoysreborn
Автор

3:58 "No module named install"

nicko
Автор

Don't make video again in six minute zero information give my six minute

talhademir