Is there a keyboard shortcut in Pycharm for renaming a specific variable?
I'm using Pycharm for Python coding, and I want to change the name of a specific variable all over the code. is there any keyboard shortcut for this operation? In Matlab I can use ctrl + shift . For example: old_name=5 x=old_name*123 will become: new_name=5 x=new_name*123 without the need to change both of the old_name references. Thanks! Highlight your old_name and hit Shift + F6 I don't know about a shortcut for this special purpose, but I simply use Ctrl + R to replace the old variable names with new ones. You can also set settings such as Match case , Regex or In selection . Note that this