F

Format to fstring migrator

JetBrains

4e546dc0-da6e-4f40-9a16-9a36f7f666fc · v—

Before using this plugin, please check out the PyCharm builtin feature 'Convert to f-string literal'. Python plugin to replace string formats to fstrings. Just select roughly text containing formats (one or more), press hotkey (Ctr+Alt+Q) and your fstring is ready! Note that this is a heuristic, it should handle most cases, but you should take a look at the result. Known issues: Format strings containing newlines will be ignored.

Refactoring
Open in store ↗ id: 11228
Downloads
2K
2 249
Rating
4.1 ★
3 ratings
Category
JetBrains Marketplace
Collected
2026-11-04
weekly snapshot

Rating distribution

4.1 ★ 3 ratings
5★ 66.7%
1★ 33.3%

Reviews 1

★★★★★ ezntapp 2019-03-15

I love the idea, but sadly it doesn't work with PyCharm Pro 2018.3.3, throwing a large stack trace. Also the default keymap is poorly chosen for MacOS as it just closes the application.

Similar in “Refactoring”