如何将所有类提取到单独的文件中? [英] How can I extract all classes into separate file?
本文介绍了如何将所有类提取到单独的文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Resharper试用版和VS2008.是否可以将所有类从一个文件提取到单独的文件中?我可以使用Resharper做到这一点,但它似乎仅适用于单个类.该文件将用于自动生成的65,000行长的文件.
I'm using the Resharper trial and VS2008. Is it possible to extract all classes from one file into a separate file? I'm able to do this using Resharper but it only seems to work for individual classes. This is to be used on a file that was auto-generated that is 65,000 lines long.
推荐答案
如果您在解决方案资源管理器中使用ReSharper 5,请按Ctrl + Shift + R来调用重构"菜单(或者右键单击并找到它) ),然后选择将类型移入匹配文件"
If you're using ReSharper 5, on the solution explorer, press Ctrl+Shift+R to invoke the Refactor menu (or alternatively right-click and locate it) and select "Move Types into Matching Files"
这篇关于如何将所有类提取到单独的文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文