用ReSharper更新名称空间的最快方法? [英] Fastest way to update namespaces with ReSharper?

查看:80
本文介绍了用ReSharper更新名称空间的最快方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在进行一些重构和重组,并移动了一堆文件。

I have been doing some refactoring and reorganization and I have moved a bunch of files around.

我想更新每个文件,使其具有正确的名称空间根据其新位置。使用ReSharper,我可以进入每个文件,这表明命名空间不正确,但是那样我必须一次在每个文件中进行操作。

I want to update each file so it has the "correct" namespace according to its new location. With ReSharper, I can go into each file and it shows me that the namespaces is incorrect but that way I have to do it each file at a time.

在文件夹或项目中的每个文件中更新名称空间?

Is there anyway to update namespaces across every file in a folder or a project?

推荐答案

更新:有人用R#阅读此问题5.0及更高版本应注意,这是一项功能

UPDATE: Anyone reading this question with R#5.0 and above should note that this is now a feature:

ReSharper->重构->调整命名空间...

ReSharper -> Refactor -> Adjust Namespaces...

这篇关于用ReSharper更新名称空间的最快方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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