Visual Studio “Go to definition” disabled or gray out

前端 未结 12 1315
你的背包
你的背包 2021-02-03 21:59

Visual Studio\'s Go To Definition is disabled and F12 doesn\'t work. Other commands like Alt-F12 may continue working.

12条回答
  •  礼貌的吻别
    2021-02-03 22:41

    Note that this can also be as a result of disabling database for C++/C#.

    In Tools - Options, type "IntelliSense" into the search box, and click on C/C++ - Advanced. In the Browsing/Navigation section, change Disable Database to False, if it is not so already.

    After re-enabling, close and reopen to force rebuild. NOTE: IntelliSense will produce large files on disk (*.sdf and ipch) that should be excluded from Git, for example.

提交回复
热议问题