From: laundmo Date: Sat, 21 May 2022 20:18:06 +0000 (+0200) Subject: Document new Microsoft Black Formatter extension for VSCode (#3063) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/fdb01f8622de9394fe9d8ee149985d365ca1419f Document new Microsoft Black Formatter extension for VSCode (#3063) Co-authored-by: Richard Si <63936253+ichard26@users.noreply.github.com> --- diff --git a/docs/integrations/editors.md b/docs/integrations/editors.md index 1c7879b..02baa29 100644 --- a/docs/integrations/editors.md +++ b/docs/integrations/editors.md @@ -301,9 +301,15 @@ close and reopen your File, _Black_ will be done with its job. ## Visual Studio Code -Use the -[Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python) -([instructions](https://code.visualstudio.com/docs/python/editing#_formatting)). +- Use the + [Python extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python) + ([instructions](https://code.visualstudio.com/docs/python/editing#_formatting)). + +- Alternatively the pre-release + [Black Formatter](https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter) + extension can be used which runs a [Language Server Protocol](https://langserver.org/) + server for Black. Formatting is much more responsive using this extension, **but the + minimum supported version of Black is 22.3.0**. ## SublimeText 3