Resharper: File header text not automatically used for new files

杀马特。学长 韩版系。学妹 提交于 2019-12-23 13:00:07

问题


I am using VS2010, Resharper 8.0.1, StyleCop 4.7.45.

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?


回答1:


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

Related:

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

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

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



来源:https://stackoverflow.com/questions/29839810/resharper-file-header-text-not-automatically-used-for-new-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!