ReSharper的:文件标题文本不会自动使用新文件 [英] Resharper: File header text not automatically used for new files

查看:318
本文介绍了ReSharper的:文件标题文本不会自动使用新文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VS2010,ReSharper的8.0.1,45年4月7日StyleCop的

I am using VS2010, Resharper 8.0.1, StyleCop 4.7.45.

我在ReSharper的选项定义的文件标题文本和(错误地)以为这重构(使用动类到一个新的文件,以匹配文件名功能)时随后将被使用。这也犯规使用Visual Studio文件模板,一个可以修改(见的如何修改为新的C#类/接口Visual Studio的模板?)。

I have defined a File header text in the resharper options and (wrongly) assumed it would then be used when refactoring (using "move class to a new file to match file name" function). This also doesnt use the Visual Studio file templates that one may modify (see How do I edit the Visual Studio templates for new C# class/interface?).

有没有一种方法,使这种行为,或者我总是有手动触发代码清理之后?

Is there a way to enable that behaviour, or do I always have to manually trigger Code cleanup afterwards?

推荐答案

这是不可能的ReSharper的,截至目前。您当前的解决方案来运行代码清理是要走的路。

This isn't possible in Resharper as of now. Your current solution to run Code Cleanup is the way to go.

相关阅读:

https://youtrack.jetbrains.com/issue/RSRP-329925

https://youtrack.jetbrains.com/issue/RSRP-170107

它以来,至少2010年。

It's been an issue / feature request reported back since at least 2010.

这篇关于ReSharper的:文件标题文本不会自动使用新文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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