Saturday, October 25, 2014

Tip 3.3: How to not automatically search for the currently-selected word

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Go to the Tools–Options–Environment–Find And Replace page, and uncheck the Automatically Populate Find What With Text From The Editor option.



Now, when you hit Ctrl+F (Quick Find) or Ctrl+Shift+F (Find In Files) or Ctrl+H (Quick Replace), the Find What combo box will not automatically display the current word or selected text.

Happy Programming! =)
Posted by Nils-Holger at 12:52 PM with 711 comments.

Friday, October 24, 2014

Tip 3.2: You can use Ctrl+F3 to search for the currently-selected word without bringing up the Find And Replace window

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Just select some text (or just have the cursor on the word you want to search for) and press Ctrl+F3. Ctrl+Shift+F3 will do a reverse search.



Note that a Ctrl+F3 search uses the following options:
  • Is case sensitive
  • Searches hidden text
  • Allows for partial matching
  • Does not use regular expressions


Happy Programming! =)
Posted by Nils-Holger at 12:38 PM with 1243 comments.

Thursday, October 23, 2014

Tip 3.1: How to behold the power of incremental search

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Sara Aside

She didn't know about incremental search until someone showed her. Now she can't live without it.


To conduct an incremental search, follow these steps:
  1. Press Ctrl+I.
  2. Start typing the text you are searching for.

    Note

    You'll see the cursor jump to the first match, highlighting the current search string.
  3. Press Ctrl+I again to jump to the next occurrence of the search string.


Additionally, you can press Ctrl+Shift+I to search backward.

To stop searching, press Esc. You'll see confirmation in the status bar that you are out of the incremental search mode.

Happy Programming! =)
Posted by Nils-Holger at 1:48 PM with 687 comments.