Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Code PeterNew to Visual Studio Code? Get it now.
Code Peter

Code Peter

PeterLi

|
173 installs
| (1) | Free
Peter的代码工具箱
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

功能简介

Python代码格式化工具Black只能格式化整个文件,这个扩展支持格式化选中代码。

使用方法

  1. python下pip install black
  2. Linux下可通过whereis black找到Black路径。
  3. 设置中搜索code peter,配置Black的路径。
  4. 选中python代码,右击选择Black格式化选中代码即可。
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft