如何让 Visual Studio 将默认值替换为当前选择?
How do I make Visual Studio Replace default to Current Selection?
在 Visual Studio 2015 年,我在使用 Ctrl+H 快捷键时遇到问题。过去,如果我选择了文本并按下组合键,替换框默认为 'Selection'。但现在它默认为 'Current Document'。如果我将其更改为 'Selection',下次我 Ctrl+H
时它不会保留该设置
我不确定我是否不小心更改了设置,或者自从我安装了 2015 版本后一直如此
您可以转到 Tools > Options
,然后在 TreeView 中展开 Environment
节点,然后选择 Find and Replace
并选中复选框 Automatically limit search to selection
在 Visual Studio 2015 年,我在使用 Ctrl+H 快捷键时遇到问题。过去,如果我选择了文本并按下组合键,替换框默认为 'Selection'。但现在它默认为 'Current Document'。如果我将其更改为 'Selection',下次我 Ctrl+H
时它不会保留该设置我不确定我是否不小心更改了设置,或者自从我安装了 2015 版本后一直如此
您可以转到 Tools > Options
,然后在 TreeView 中展开 Environment
节点,然后选择 Find and Replace
并选中复选框 Automatically limit search to selection