docs: Update the example to set up black formatter in Python (#13839)
As titled. The new example is consistent with the instructions in "Configuring Zed". I verified that the example works as expected. Release Notes: - Update the instructions to set up external formatter for Python.
This commit is contained in:
parent
e69f9d6cf9
commit
1bd585186a
1 changed files with 4 additions and 3 deletions
|
@ -58,12 +58,13 @@ A common tool for formatting python code is [Black](https://black.readthedocs.io
|
|||
{
|
||||
"languages": {
|
||||
"Python": {
|
||||
"format_on_save": {
|
||||
"external": {
|
||||
"formatter": {
|
||||
"external": {
|
||||
"command": "black",
|
||||
"arguments": ["-"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"format_on_save": "on"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue