开发者

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 smal开发者_运维百科l X on the top right like 100 times a day.

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


Use ..

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


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


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 :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜