用于命名空间和物理项目结构的重构工具
当我进行修改时,一些代码往往会比最初计划的要大得多。当发生这种情况时,我通常会引入/折叠/合并命名空间,在它们之间移动文件,移动文件夹等。有时,如果我没有清晰的最终结果,这真的很痛苦,而且很容易“跳过” ”。这会导致项目恶化,其中类属于其他地方、奇怪的命名空间、没有文件夹/错误的文件夹等。 然后我通常无法再忍受并进行更大的清理——这通常并不困难,只是非常乏味,而且一次完成所有事情感觉很好,所以我在完成时会冻结代码。
所以我的问题是......是否有任何工具可以帮助重构项目的命名空间/物理方面?
When I hack around, some code tend to get much bigger than originally planned. As this happens I usually introduce/collapse/merge namespaces, move files between them, move folders etc etc. Sometimes, if I don't have a clear picture of the end result, this is a real pain and really easy to just "skip". This leads the project deteriorate where classes belong elsewhere, strange namespaces, no folders/wrong folders etc.
And then I usually cannot take it anymore and do a larger cleanup - which is usually not difficult, just very tedious and it feels nice to do everything at once, so I do a code freeze while finishing up.
So my question is... Are there any tools to help refactoring the namespace/physical aspects of a project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Visual Studio 最流行的重构工具是 Resharper 和 代码冲刺。
另请参阅 Resharper 与 CodeRush。
Most popular refactoring tools for Visual Studio are Resharper and Code Rush.
Also see Resharper vs. CodeRush.