Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用了CodeRush @DevExpress。它有成员图标,您可以轻松地将代码块移动到任何#region. 但我没有在ReSharper中这样做。我希望找到解决办法。
#region
Coderush 这样做:
在 ReSharper 中,您可以使用文件结构窗口。您可以通过将元素拖动到元素列表中的当前位置来移动元素。
在上面的示例中,我只是添加了一些区域来演示文件结构窗口如何支持区域。就我个人而言,我尽量避免使用区域,并将它们视为一个已经变得太大并且需要重构的类的标志。幸运的是,我只需单击角落的小 x 即可删除区域,而无需删除区域内的内容。