visual-studio-code - Visual Studio 代码 : "Unfortunately we have no symbol information for the file"

标签 visual-studio-code

我正在使用 Visual Studio Code 1.0.0 版并编辑一个 html 文件(它实际上是一个 *.asp 文件,但 html 被自动选择为状态栏最右侧的语言)。例如,当我将光标定位在 css 类名上并按 Ctrl+Shift+O 时,会出现消息“不幸的是,我们没有该文件的符号信息”。如果我将光标定位在 javascript 函数名称上,这也是正确的。

FWIW,我的 css 文件使用“

VSC 需要什么才能看到函数定义?

谢谢!

最佳答案

我面临同样的问题(因为我在 CoffeeScript 中工作)所以我深入研究了 VSCode 源代码,我能够找到提供 CS 和 Html 源代码的代码。

好吧,它们不提供符号——这就是你无法看到和导航它们的原因——而只是着色。

因此,这不是我们的问题,而是缺乏对 VSCode 的支持。您可能希望有兴趣最终将问题提交到他们的 repo。

希望它澄清。

关于visual-studio-code - Visual Studio 代码 : "Unfortunately we have no symbol information for the file",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37029066/

相关文章:

visual-studio-code - 如何以编程方式在 VS Code 中显示 CompletionList?

python - 在 Visual-studio-code 中设置 python virtualEnv 时出错

bash - 如何将vscode/gitlens设置为wsl中git的默认编辑器

visual-studio-code - Visual Studio Code 为文本编辑器导航配置分词

git - 在 Visual Studio 代码中检测 git 子文件夹

python - 如何让VSCode始终运行main.py

javascript - 扩展 'eslint' 配置为格式化程序,但无法格式化 'JavaScript' -files

json - 如何使用 vscode 处理 JSON 中的大多行字符串?

html - Visual Studio 代码 html 建议不起作用

javascript - 如何在 VS Code 中为个人功能创建提示