c# - Search a string in visual studio including ressource files and showing usages of localized strings containing the searched element -


i want know if way exists (or extension) searching string in visual studio return places localized string containing searched pattern used.

for instance, have 2 messages in ressource file (.resx)

 <data name="msg_001" xml:space="preserve">     <value>please enter person's name</value>   </data>   <data name="msg_002" xml:space="preserve">     <value>please indicate company's name</value>   </data> 

and somewhere in c# code

var name = "georges"; 

i able search word "name" , have in results line above (as usual) every usages of msg_001 , msg_002 since replacing string containing word "name"

ctrl+shift+f search in every place within solution

for instance, dialog see:

enter image description here

there can specify parameters might use find stuff in files. can use regular expressions if want. results going shown in new result console screen

there cool (paid) extension called resharper lets bunch of cool things if interested in other options


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -