如何使用Resharper使用语句移动

时间:2013-12-10 17:20:48

标签: c# refactoring resharper

Resharper为我做了一些重构,并在我的文件顶部添加了使用语句。不幸的是,它把它们添加到了错误的地方。我需要它们在一些保留注释中,以便它们不会被我们的代码生成软件消灭。目前我的文件看起来像这样:

/******************************************************************************************
 Copyright Info at the top of every file
**************************************************************************************/

using Something.Added.By.Resharper;

namespace Some.Namespace {
using Statements.Generated.By.Our.Code.Generation.Software;

// PRESERVE:BEGIN
using Statements.ThatWont.Be.Wiped.Out.By.Generation.Software;
// PRESERVE: END

我需要将上面的语句移到PRESERVE条评论中。如何在数千个文件中实现这种重构?

0 个答案:

没有答案
相关问题