找到所有源硬盘codeD字符串 [英] Find all source hardcoded strings
本文介绍了找到所有源硬盘codeD字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要把所有的辛苦codeD串在我的源$ C $ C在.resx文件。是否有一个工具,可以帮助我找到C#code范围内的所有硬codeD字符串?
I need to move all the hard coded strings in my source code in .resx files. Is there a tool that could help me find all the hardcoded strings within C# code?
推荐答案
5 ReSharper的是显而易见的一个选择,但许多技巧必须设置从而达到自己的目标,
ReSharper 5 is obvious a choice, but many tips must be set so as to achieve your goals,
- 打开解决方案广泛的分析。
- 到
ReSharper的
|选项
|code检查
|检验严重性
|潜在code。质量问题
|元素本地化
设置为显示为错误
。 - 回到Solution Explorer中单击项目(的csproj)。
- 在ReSharper的下类属性面板中设置本地化为是,本地化的督察悲观。
- Turn on solution wide analysis.
- Go to
ReSharper
|Options
|Code Inspection
|Inspection Severity
|Potential Code Quality Issues
|Element is localizable
set toShow as error
. - Go back to Solution Explorer and click on the project (csproj).
- In Properties panel under ReSharper category, set Localizable to Yes, Localizable Inspector to Pessimistic.
然后,你几乎可以找到所有你需要的错误,在解决方案面板。
Then you can find almost all you need in Errors in Solution panel.
希望这有助于。
这篇关于找到所有源硬盘codeD字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文