Resharper 设置经常自发重置

Resharper's settings often reset spontaneusly

Resharper 的设置经常自动重置。这种情况几乎总是在 Visual Studio 重新启动后发生,但我没有发现确切的规律性。

这在我工作的每台机器上的每个 Visual Studio 上不断重复。

这可以通过在 "Resharper options -> Keyboard & Menus" 中按 "Apply Scheme" 来纠正。

但是为什么会发生这种情况以及如何防止它再次发生?

如果您的计算机上安装了非英语键盘语言,您可能会遇到此问题 https://youtrack.jetbrains.com/issue/RSRP-449737。如果您在 launching/closing Visual Studio 个实例之间更改键盘语言,Visual Studio 可能会忘记自定义快捷键。 您可以尝试在任何自定义快捷方式上重现相同的问题,如工单评论中所述:

  1. Suspend ReSharper. Restart VS.
  2. English is an input language. Assign shortcut "Ctrl+/" to the Edit.NavigateTo command using Tools | Options | Keyboard (see 1.png)
  3. Restart VS. Shortcut is assigned (see 2.png)
  4. Close VS. Switch to a non-English input language. Start VS. The shortcut becomes "Ctrl+\" (see 3.png and 4.png)
  5. Close VS. Your language is still an input language. Start VS. Shortcut is lost (see 5.png and 6.png). It's 100% reproducible for Russian. You can use any VS command instead Edit.NavigateTo, it does not matter. May be you can try to apply the shortcut in French and then switch to English.