Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio find and replace has default file types

Does anyone know how to remove the default "Look at these file types:" in Find and Replace? In my VS, whenever the rare occasion I tell VS to look in just *.cs, or just *.less, when I open Find and Replace, it prepopulates it with the last one I used. This only happens on my first Find and Replace after opening Visual Studio. It's kind of annoying that it prepopulates on first start up.

like image 856
Crystal Avatar asked Jan 14 '15 23:01

Crystal


People also ask

How do I change file type in Visual Studio?

Tools > Options > Text Editor > File Extension add your file extension with '. ' like .

How do you do a Find and Replace in Visual Studio?

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). You can also find and replace only some instances of a pattern by using multi-caret selection.

How do I Find and replace all codes in Visual Studio?

You can also Search and Replace across files. Expand the Search widget to display the Replace text box. When you type text into the Replace text box, you will see a diff display of the pending changes. You can replace across all files from the Replace text box, replace all in one file or replace a single change.


1 Answers

Rather than deleting the text in 'Look at these file types', select *.* from the drop down list. When you next open VS, it will default to *.*.

like image 100
Carl Sharman Avatar answered Nov 26 '22 08:11

Carl Sharman