0

从 5.0 版开始,ReSharper 提供了“转到相关文件”导航,它提供了 R# 认为与当前正在编辑的文件相关的文件列表:例如,基本类型、派生类型、.designer.cs相关.cs的和很快。

我查看了 R# Options 以及在线,但未能找到:

有没有办法将文件添加到这个列表中,无论是在 R# 中,还是通过已经存在的插件?

(我的动机是能够在编码时在文件之间导航,这些文件包含通过仅运行时的约定优于配置,呃,约定连接的类)

4

1 回答 1

2

I don't know about existing plugins, but this feature is extendable. You need to implement IRelatedFilesProvider interface in your plugin and mark it by RelatedFilesProvider attribute. As far as I know, NHibernate plugin do it for analogous task.

于 2011-03-16T20:33:07.640 回答