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

Опубликовано: 03 Апрель 2021
на канале: Engineers Revolution
16,590
77

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.


Смотрите видео Black Formatting | Python Black Formatter VSCode | Using Black to automatically format Python VSCode онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Engineers Revolution 03 Апрель 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 16,590 раз и оно понравилось 77 людям.