Skip to content

jantomec/PythonStringFormat

Repository files navigation

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.

About

Convert between formatted strings in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published