Resharper Ruleset,我们可以分享它们吗?

时间:2021-06-02 22:58:33

I work in a small dev team and we've recently acquired Resharper. Is it possible to configure Resharper's ruleset (e.g. Disabling resharper from wanting to rename everything to "var" ) on one machine and distribute that ruleset amongst all the developers?

我在一个小型开发团队工作,我们最近收购了Resharper。是否可以在一台计算机上配置Resharper的规则集(例如,禁用resharper想要将所有内容重命名为“var”)并在所有开发人员中分发该规则集?

Thanks

2 个解决方案

#1


I believe you can find this in Resharper -> Options -> Languages -> Common -> Code Style Sharing.

我相信你可以在Resharper中找到它 - >选项 - >语言 - >常用 - >代码样式共享。

UPDATE: In Resharper 6, settings management can be found in Resharper -> Manage Options... From there you can import/export settings files and apply a layered configuration.

更新:在Resharper 6中,可以在Resharper中找到设置管理 - >管理选项...从那里,您可以导入/导出设置文件并应用分层配置。

#2


Yep, it is quite possible to share code styles (you'd have to investigate more closely what they mean under "Code Style"). See this:

是的,很有可能分享代码样式(你必须更仔细地研究它们在“代码风格”下的含义)。看到这个:

alt text http://geekswithblogs.net/images/geekswithblogs_net/alternativedotnet/WindowsLiveWriter/SharingReSharpersettingsinyourteam_14F1A/shared_code_style_thumb_1.jpg

alt text http://geekswithblogs.net/images/geekswithblogs_net/alternativedotnet/WindowsLiveWriter/SharingReSharpersettingsinyourteam_14F1A/shared_code_style_thumb_1.jpg

#1


I believe you can find this in Resharper -> Options -> Languages -> Common -> Code Style Sharing.

我相信你可以在Resharper中找到它 - >选项 - >语言 - >常用 - >代码样式共享。

UPDATE: In Resharper 6, settings management can be found in Resharper -> Manage Options... From there you can import/export settings files and apply a layered configuration.

更新:在Resharper 6中,可以在Resharper中找到设置管理 - >管理选项...从那里,您可以导入/导出设置文件并应用分层配置。

#2


Yep, it is quite possible to share code styles (you'd have to investigate more closely what they mean under "Code Style"). See this:

是的,很有可能分享代码样式(你必须更仔细地研究它们在“代码风格”下的含义)。看到这个:

alt text http://geekswithblogs.net/images/geekswithblogs_net/alternativedotnet/WindowsLiveWriter/SharingReSharpersettingsinyourteam_14F1A/shared_code_style_thumb_1.jpg

alt text http://geekswithblogs.net/images/geekswithblogs_net/alternativedotnet/WindowsLiveWriter/SharingReSharpersettingsinyourteam_14F1A/shared_code_style_thumb_1.jpg