basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

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

Open DetachHead opened this issue 2 years ago • 4 comments

DetachHead avatar Apr 10 '24 00:04 DetachHead

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

Throne3d avatar Jul 12 '24 02:07 Throne3d

thanks, i forgot it wasn't enabled by default

DetachHead avatar Jul 12 '24 02:07 DetachHead