title: Visual Studio - Tool to replace hard coded strings with resources
body: <p>I have a big ASP.NET project full of hard coded strings, that now have to be extracted to resources. Such strings can be found almost anywhere (in .cs files, .aspx files, .ascx files, etc.) and the amount of files is huge. What I'm looking for is a tool (or any way) to find all these hard coded strings in one shot and put them all together in the resource file, instead of me going manually through each file. Does anything like this exist?</p>
  
  <p>Note: I'm aware that it would have been better to put the strings in resources straight away when they were needed the first time, but this is a 2 years old project where nobody really cared (typical example of "not my problem" philosophy).</p>
  
  <p>Thank you very much.</p>
  
  <p><strong>UPDATE</strong>: I tried CodeRush (I couldn't try RGreatEx for obvious reasons), and I'm having difficulties using it. The main issue is that the strings I'm looking for are located mainly in .aspx files, and strings in those files don't have the "Refactor to resource" command available.</p>
  
  <p>For example, I can have elements like this:</p>
  
  <pre><code>&lt;dxwgv:ASPxSummaryItem DisplayFormat="{0}" FieldName="TOTAL" ShowInColumn="Total" SummaryType="Sum" /&gt;
  </code></pre>
  
  <p>The part I need to change is <em>ShowInColumn="Total"</em> and make it like <em>ShowInColumn="&lt;%$ Resources:PortalResource, Total %>"</em>. This is not a string assignment in a strict way, but an attribute assignment, so the "Refactor!" command of CodeRush doesn't appear.</p>
  
  <p>My target is to find all of them in one shot and change them in a specific interface (i.e. like a localization tool) instead of looking for them one by one and manually creating the corresponding resource. Refactoring one by one inside each file would be an improvement, but still very time consuming...</p>