Skip to main content
 首页 » 编程设计

python之是否可以将 blackd 格式化程序用于 python

2024年11月01日9davidwang456

是否可以在 VsCode 中使用 python 的 blackd 格式化程序?如果可能的话,我希望看到使用 blackd 的性能提升。

来自文档

blackd is a small HTTP server that exposes Black’s functionality over a simple protocol. The main benefit of using it is to avoid paying the cost of starting up a new Black process every time you want to blacken a file.

请您参考如下方法:

目前不可能,但如果您希望看到添加支持,请在 https://github.com/microsoft/vscode-python/issues/3336 上留下一个赞成的 react 。 .