DetachHead / basedpyright

pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server
https://docs.basedpyright.com
Other
861 stars 16 forks source link

automatically convert a regular string to `f` string when you type a curly bracket inside a string #280

Open DetachHead opened 4 months ago

Throne3d commented 1 month ago

I don't think I've noticed this in pylance - is this behind a config? (Asking because this is tagged pylance parity) Usually I just get the dark blue format-string highlight in VSCode until I add the f prefix and start getting proper highlighting + completion.

I'd find it useful though! I rarely use old-style format strings nowadays.

Edit: Never mind! Just found it - python.analysis.autoFormatStrings

DetachHead commented 1 month ago

thanks, i forgot it wasn't enabled by default