Skip to content

Other features

File icons#

In the Project tool window, editor tabs, navigation bar and various other places, the icons for the following files are replaced with the tools' logos:

  • Ruff: ruff.toml/.ruff.toml
  • uv: uv.toml, uv.lock
  • Rye: .rye/config.toml
Project tool window:

Editor tabs:

Navigation bar:

New terminal autocompletion#

If the new terminal is used, autocompletion will be provided for ruff, uv, uvx and rye commands.

Language injection#

Inline script metadata block#

PEP 723 inline script metadata blocks are automatically injected with TOML. Only Python files whose extensions are either .py or unknown are supported.

This can be disabled using the corresponding setting. To force rerendering, make an arbitrary edit or reopen the file.

Requirements arrays in TOML files#

uv settings that takes an array of PEP 508 dependencies are injected with Requirements, similar to that of project.dependencies. Such settings include:

  • [tool.uv] constraint-dependencies
  • [tool.uv] dev-dependencies
  • [tool.uv] override-dependencies
  • [tool.uv] upgrade-package
  • [tool.uv] pip.upgrade-package

project.optional-dependencies is also supported. This monkeypatches PY-71120.

Edit script metadata fragment#

This intention is available when the cursor is inside the script metadata block.

It opens a new editor with the fragment content prefilled, removing all prefixes and suffixes. The new content will be written back when this editor is closed.