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
5 comments
Comment actions Permalink
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
Comment actions Permalink
Thanks, Dmitry. This is the exact same solution i have also come up with.
0
Comment actions Permalink

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!

4
Comment actions Permalink

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

0
Comment actions Permalink

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.

0

Please sign in to leave a comment.