Pycharm 2020.2.4 does not show f-string refactoring

f-string refactorings are not showing up at all on Mac (Catalina or Big Sur) 

I have tried typing {} within a string. 

I have tried show context actions - do not show up there either. 

Can you guide me what I need to do to make them appear. 

Python is 3.8.x with Conda.

Tried this both on scratch.py and normal partofsomepythonproject.py 

 

0
6 comments

This is on the Professional edition (not community one). 

0

Hi, could you please provide code sample and a screenshot demonstrating the issue?

0

I think this might be a user error but can you provide exact steps how to get this f-string refactoring to work in a situation.  With an example 

0

Thank you. Would be useful if in the following the refactoring would be available as well. Now found Jetbrains tweet about this - it seems to only happen if you complete the something in the print statement from the submenu that comes up suggesting something as an addition. if you continue typing or you paste the {something} or something within curly quotes - the refactoring is not offered. 

something = "yes"
print(f"anything {something}")

 

0

Please sign in to leave a comment.