Visual Studio:是否存在“将类移动到其他名称空间"?重构? [英] Visual Studio: Is there a "move class to different namespace" refactoring?

查看:115
本文介绍了Visual Studio:是否存在“将类移动到其他名称空间"?重构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一些架构清理,其中涉及将一堆类移到不同的项目和/或名称空间中.目前,我正在手动移动文件,构建文件,然后根据需要手动使用Foo 语句添加来解决编译错误.有人知道这样做更聪明吗? (我们是一家CodeRush和Refactor!商店,但我很想知道Resharper是否对此提供支持)

I'm doing some architectural cleanup that involves moving a bunch of classes into different projects and/or namespaces. Currently I'm moving the files by hand, building, and then manually adding using Foo statements as needed to resolve compilation errors. Anyone know of a smarter way of doing this? (We're a CodeRush and Refactor! shop, but I'd be interested to hear if Resharper has support for this)

推荐答案

如评论中所述,此答案现在已过时.请参阅下面的最新答案

As mentioned in the comments, this answer is now outdated. Please see the up-to-date answer below

Resharper是我所知道的唯一具有此功能的工具.还有许多其他功能,它们在CodeRush和Refactor中都缺少!

Resharper is the only tool I am aware of what has this ability. There is also a lot of other functionality that it has that is missing in CodeRush and Refactor!

这篇关于Visual Studio:是否存在“将类移动到其他名称空间"?重构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆