F12 finds all references, not go to definition

后端 未结 5 1313
傲寒
傲寒 2021-01-22 09:54

Lately my F12 key does not seem to be working as expected in Visual Studio 2010 Professional SP1. It should go to the definition of what is selected, but instead it\'s performin

5条回答
  •  死守一世寂寞
    2021-01-22 10:52

    Maybe there is more than one definition for the class or function in your project?

    I had this problem after copy/pasting a class definition. After pressing F12 on the class name, it first brought up a search result showing both files in which the class name was found. If you press F12 another time, it will jump to the first one in the search results.

    Did you know that you can use Ctrl + - (Minus) to jump back? :-)

提交回复
热议问题