Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>yapf plusNew to Visual Studio Code? Get it now.
yapf plus

yapf plus

Preview

OccAI

|
4 installs
| (1) | Free
Provides Python formatting with yapf. An enhanced yapf extension. 使用 yapf 格式化 Python。扩展yapf 的增强版。
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

yapf plus

English / 英文

A formatter extension that supports both Python files and Notebook cells. It is an enhanced version of yapf. Original extension: yapf

中文

一个支持 Python 文件和 Notebook 单元的格式化器扩展。它是 yapf 的增强版本。原扩展地址:yapf


Features 功能特色

English

  • Fast formatting for Python programs.
  • New feature: Format only the current line when pressing Enter, without affecting normal editing (e.g., pressing Enter will not delete spaces).
  • Customize your own yapf style.
  • Other features are the same as yapf.

prompt:If the Enter-line-formatting feature is not enabled, the extension will automatically turn it

中文

  • 对 Python 程序进行快速格式化。
  • 新功能:支持回车只格式化当前行代码,不影响正常代码书写(如回车时不会删除空格)。
  • 可设置您自己的 yapf 风格。
  • 其他功能同 yapf。

注意:如果尚未开启回车格式化,插件会自动为您开启此功能。


Usage 使用方法

English

  • Usage is the same as yapf.

中文

  • 功能使用方式同 yapf。

Contributing 贡献

English

Issues and PRs are welcome to improve this extension.

中文

欢迎提交 issue 或 PR 改进插件。


Links 友情链接

  • yapf
  • Python (中文版)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft