How to skip preview window when refactoring through Shift+F6

Hi.

I am working with PyCharm 3.0.1.
When trying to refactor literals with Shift+F6 and pressing Refactor button
i am forwarded to preview window where i have to click Refactor button with a
mouse to actually apply refactoring.
Is there any way to skip this preview window and get rid of using mouse?


refactor-preview.jpg
3
It's not possible to skip the preview window, but you don't need to use the mouse to apply the refactoring. Try pressing Alt-D in the preview window.
0
Avatar
Permanently deleted user
Thanks, Dmitry. This is the exact same solution i have also come up with.
0

Then what is exactly the use of the preview button, if you get exactly the same, whether you press preview or refactor? I think this is quite annoying!

5

I also find it very weird! Why there are 2 different buttons then if they do exactly the same - show the preivew dialog?

0

Some refactoring actions, like renaming a file, does not require preview, and pressing "Refactor" will do the action immediately. But since PyCharm use the same dialog box for all refactoring actions, there are always two buttons.

-1

请先登录再写评论。