PyCharm 2020.2 EAP2: In-place rename and signature change

Roberto Pesce

PyCharm 2020.2 EAP2 was released today with a feature that will blow your mind! You can download this EAP build from our website or from the Toolbox App.

If you see yourself going through a cumbersome modal dialog when renaming or changing signatures of methods and classes you will like this new feature. With in-place refactoring, you can simply edit names or parameters of a class or a method and then either click the new gutter icon or use the intention action (alt+enter) to preview the changes and apply it to all its usages.

Static remove parameter

Whenever you add or change a parameter in your method signature you are prompted to add either a required or an optional value to populate usages and prevent broken code:

ide add value prompt

Here you can see how to change the signature using an intention action (alt+enter) that will apply project-wide refactorings without requiring you to take your hands off the keyboard:

demo gif inplace refactoring

Renaming is also that easy. You can use in-place refactoring to rename classes, methods, and variables. See below how it would look like to use the refactor|rename feature by clicking the gutter icon:

rename refactor

Of course, this is just one of the multiple new features present in PyCharm 2020.1 EAP! Below you can find other new features and you can always check out the full release notes for the list of all closed tickets in this build.

What else is new in 2020.2 EAP2

PyCharm Early Access Program

As usual, the EAP builds for PyCharm are free to use and expire within 30 days of the build date. If you are unfamiliar with how JetBrains Early Access Programs work you can find more information in older PyCharm posts.

 

Subscribe

Subscribe for updates