问题描述
当我在文本编辑器中选择一个文本块并打开搜索&替换窗口(Ctrl+H),搜索&在 VS 2013 及更早版本中,替换范围自动设置为选择".
When I select a text block in text editor and open the search & replace window (Ctrl+H), the search & replace scope is set to "Selection" automatically in VS 2013 and the olders.
在 VS 2015 中,范围始终设置为当前文档".
In VS 2015, the scope is always set to "Current document".
我没有找到有关此更改的任何信息.有人知道这是一个错误还是一个功能(并且可以以某种方式将其重新配置为以前的行为)?
I've not found any information about this change. Does anybody know it is a bug or a feature (and can it be re-configured to the former behavior somehow)?
推荐答案
Tools/Options/Environment/Find and Replace/check Automatically limit search to selection
选项.请参阅 MSDN
Tools / Options / Environment / Find and Replace / check Automatically limit search to selection
option. See MSDN
这篇关于如何设置“选择"搜索范围在 VS 2015 中替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!