将“查找和替换"对话框重置为Visual Studio中的“当前文档" [英] Reset Find and Replace dialogs to Current Document in Visual Studio

查看:160
本文介绍了将“查找和替换"对话框重置为Visual Studio中的“当前文档"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以强制Visual Studio中的查找和替换"对话框在查找范围"下拉列表中自动选择当前文档?它仅应在重新打开对话框时执行此操作.我经常忘记从整个解决方案或项目中切换回来,最终浪费大量时间等待VS搜索包括设计器文件在内的所有内容!我希望有一个注册表黑客之类的东西.

Is there a way to force the Find and Replace dialog boxes, in visual studio, to auto select Current Document in the Look in drop down? It should do this only on reopening the dialog. I regularly forget to switch back from entire solution or project and end up wasting a lot of time waiting for VS to search everything including designer files! I'm hoping for a registry hack or something.

我敢肯定,这也是其他人的主要烦恼.任何提示,将不胜感激!

I'm sure this is a major annoyance for others too. Any tips on this would be greatly appreciated!

推荐答案

尽管对话框本身是相同的,但是Visual Studio保留了使用Ctrl+FCtrl+Shift+F快捷方式显示的对话框的单独设置.因此,当我想在当前文档中搜索时,我按了Ctrl+F.当我想在Project/Solution/目录中搜索时,我按下Ctrl+Shift+F,然后选择要搜索的位置.

Visual Studio retains separate settings for dialogs shown using Ctrl+F and Ctrl+Shift+F shortcuts, though dialogs themselves are identical. So when I want to search in current document, I hit Ctrl+F. When I want to search in Project/Solution/directory, I hit Ctrl+Shift+F and then choose where I want to search.

这篇关于将“查找和替换"对话框重置为Visual Studio中的“当前文档"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆