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

PythonStringFormat

Jan Tomec

|
36 installs
| (0) | Free
Convert between formatted strings in Python.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PythonStringFormat

PythonStringFormat is an extension for automated conversion between str.format and f-strings in Python.

Features

This extension provides the following commands, available via Command Palette (Cmd + Shift + P or Ctrl + Shift + P):

  • Convert f-string to .format(args): Convert a Python f-string to str.format with args.
  • Convert f-string to .format(keywords): Convert a Python f-string to str.format with keywords (generic keywords are inserted).
  • Convert .format() to f-string: Convert a str.format (can contain both args and kwargs) to f-string.

Requirements

This extension requires Python extension.

Installation

You can install the PythonStringFormat extension directly from the Visual Studio Code Marketplace or by searching for it in the Extensions view (Cmd + Shift + X, Ctrl + Shift + X).

Extension Settings

Currently, this extension has no settings.

Known Issues

Please report any issues on the official github repo.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Feedback

If you have any questions or feedback, feel free to reach out on GitHub.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft