Go to declaration keyboard shortcut missing

寵の児 提交于 2019-12-11 22:16:20

问题


I installed Resharper and it over-wrote my keyboard shortcut for Go To Declaration. How can I set the keyboard shortcut back to F12?

I looked in Visual Studio Options > Tools > Options > Environment > Keyboard Shortcut. There are many shortcuts related to declaration here. I'm not sure which one to edit.

Image (missing shortcut key)


回答1:


When using the INTELLIJ IDEA schema you need to do a few things. Go to Visual Studio Options > Tools > Options > Environment > Keyboard Shortcut.

  1. Remove the F12 assignment from Resharper.ReSharper_GoToNextHighlight.
  2. Assign F12 to Resharper.Resharper_GotoDeclaration by selecting it in the options editor and clicking F12 > Assign.
  3. You may also have to remove F12 assignment from Edit.GoToDefinition. F12 being assigned to another button causes some bizarre stuff to happen.

Now F12 should display in the context menu and function correctly.

Alternatively, if the shortcut to "Go to Declaration" has simply become unbound then reset it back to the default of CTRL+B. In Visual Studio top menu > Resharper > Options > Environment > Keyboard and Menus > Select IntelliJ IDEA schema > Apply Scheme.



来源:https://stackoverflow.com/questions/25688606/go-to-declaration-keyboard-shortcut-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!