1. 程式人生 > >VS找不到“轉到定義”選項

VS找不到“轉到定義”選項

不用關閉Visual Studio軟體,關閉所有已經開啟檔案,通過在解決方案中點選檔案重新開啟它們。

轉載地址:http://social.msdn.microsoft.com/Forums/en-US/5562f8f3-8fee-4080-83c1-7dbba8dadd4a/go-to-definition-is-disabled-in-visual-studio?forum=csharpide

Question

In my project, I have one file that has the "Go to definition" option disabled.  I can't figure out how to get that option back, and I use that option quite heavily.  Any advice? Friday, June 08, 2007 7:55 PM Avatar of Ezek
Ezek 25 Points

Answers

  • Don't close Visual Studio but close all the files and open them again by clicking on the file in the solution. The file might have been opened by Source Safe or you maybe opened it from Windows Explorer. In this case the file doesn't get assosiated with your solution and the Go to Def. doesn't work.