Python code formatting with black #6597
Replies: 3 comments 1 reply
-
Could you share more about what happens when you save a file? Does it do anything, does it make the formatting incorrectly, does it throw any errors? |
Beta Was this translation helpful? Give feedback.
-
BTW I had this issue and the solution is simple - you need to just pass e.g.
|
Beta Was this translation helpful? Give feedback.
-
Here is my working settings, except by the "languages": {
"Python": {
"format_on_save": {
"external": {
"command": "/opt/homebrew/bin/black",
"arguments": ["-", "--line-length", "80"]
}
}
}
} Note: At least for me, Zed had to be restarted after every setting update in order to apply changes. |
Beta Was this translation helpful? Give feedback.
-
It is just only been a few days since I started using Zed and I love it. I could setup the Zed for my rust learning out of the box with very few configurations. But I am having problem with formatting Python code on save. I have already read the documentation and already installed black. But I still can't use it. I would like to request the help to setup Python for Zed from seniors. Thanks.
My settings.json:
Beta Was this translation helpful? Give feedback.
All reactions