Visual Studio Code ctrl+ F12 或 右键 go to definition 提示 the symbol "xxx" is not defined(转到定义显示未定义)

时间:2025-02-27 10:12:52

Visual Studio Code ctrl+ F12 或 右键 go to definition 提示 the symbol  “xxx”  is not defined(转到定义显示未定义)
问题描述:
在vs2008到vs2015中
通过CTRL+F12跳转到某个变量或函数显示未定义
通过右键go to definition显示未定义

解决方法:
删除项目对应的文件,与对应,一个项目又叫解决方案(而不是工程)只有一个。
删除后重新打开工程完全加载完成后即可。