In Visual Studio 2015 I'm having problems with the Ctrl+H shortcut. In the past if I had text selected and pressed the key combo, the replace box defaults to 'Selection'. But now it's defaulting to 'Current Document'. If I change it to 'Selection' it does not retain that setting next time I Ctrl+H
I'm not sure if I've accidentally changed a setting, or if it's always been like this since I installed the 2015 version
You can find and replace text in the Visual Studio editor by using Find and Replace (Ctrl+F or Ctrl+H) or Find/Replace in Files (Ctrl+Shift+F or Ctrl+Shift+H).
Today I learned How to find and replace with a newline in Visual Studio Code. In the local searchbox ( Ctrl + F ) you can insert newlines by pressing Ctrl + Enter . If you use the global search ( Ctrl + Shift + F ) you can insert newlines by pressing Shift + Enter .
You can go to Tools > Options
then in the TreeView, expand the Environment
node, and choose Find and Replace
and check the box Automatically limit search to selection
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With