Andomar
Andomar

Reputation: 238048

Keyboard shortcut to close the Find and Replace dialog

In Visual Studio, I type CTRL-F to open the Find and Replace dialog. I can search with F3 or ENTER. This brings me to the next hit, with the focus on the window where the text was found.

However, the Find and Replace dialog is still there. If I press ESCAPE the window loses focus, but it doesn't go away. I end up having to move my mouse to the small X on the top right like 100 times a day.

Is there a keyboard shortcut to close the Find and Replace dialog?

Upvotes: 9

Views: 4911

Answers (3)

Muhammad Mobeen Qureshi
Muhammad Mobeen Qureshi

Reputation: 1182

1) Goto Tools -> Options -> Environment -> Keyboard, in Show commands containing: type Window.CloseToolWindow.
2) Make sure Windows.CloseToolWindow is selected; remove the shortcut key (Shift+Esc)
3) Under Use new shortcut in: select Global.
4) Click the textbox under Press shortcut keys: and press ESCAPE key.
5) Click Assign
6) Press OK.

You are good to go :)

Upvotes: 3

Saurabh Gokhale
Saurabh Gokhale

Reputation: 46395

Use ..

Command Name            | Short-Cut Key  | Description
----------------------- | -------------- | -------------------------------
Window.CloseToolWindow  | SHIFT + ESC    | Closes the current tool window

Upvotes: 11

cqarthur
cqarthur

Reputation: 51

Press Shift + Esc. It will close the current tool window.

Upvotes: 4

Related Questions