Prevent Panel Close w [Cmd]+[W] or [Ctrl]+[W]

When searching for a snippet in many files (e.g., search for the string `<img`), I go back & forth between editor and Find panel.

When I'm done editing that file, I may type [Cmd]+[W] (Command+W on Mac) or [Ctrl]+[W] (Control+W on everything else), frequently, I don't realize that I've switched back to the Find panel, and it closes.

As a result, I now have to re-do my search, and then figure out where I was in the search. If I have 30+ files with `<img` in it, and I'm on the 27 file, I have to remember that I was on file #27, plus identify which line.

Is there a way to tell PhpStorm not to close panels with the Cmd+W?

Thanks!

1
2 comments

Hi there,

Please check https://youtrack.jetbrains.com/issue/IDEA-133899 ticket -- especially comments in related ticket (can be used as workaround/solution for now -- see if it will work for you).

0

Thanks Andriy! You are correct, this is what I was looking for!

From this comment:

https://youtrack.jetbrains.com/issue/RUBY-18518#comment=27-1603222

You should bind the Cmd+W to Close Active Editor and not to Close.

I made this change, and the Panel no longer closes w Cmd+W.

We can mark this 'Issue' as RESOLVED.

Thank you!

1

Please sign in to leave a comment.