F12 finds all references, not go to definition

后端 未结 5 1226
傲寒
傲寒 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:51

    I experienced this exact misbehavior today with VC++ 2013: pressing F12 was no longer jumping to a method's definition, but was instead showing a list of references to that method.

    Turns out IntelliSense is required in order for the command Edit.GoToDefinition to work, which I had disabled this morning. Setting Tools>Options>Text editor>C/C++>Advanced>IntelliSense> Disable IntelliSense back to False fixed the problem.

提交回复
热议问题