python - Linux 上 VSCode 中 Python 的 VSCode-Python 大纲 View 不起作用

标签 python visual-studio-code

在 Ubuntu 16.04.3 上运行 VSCode
VSCode 版本:1.26.1
微软 Python 扩展:2018.7.1

当我查看 python 文件时,大纲 View 显示在文档中找不到符号。 Windows 上 VSCode 中的同一文件显示所有符号

有什么帮助吗?

最佳答案

总结在评论中找到的答案......
打开的尚未编辑的 Python 文件不会在大纲 View 中显示任何内容(消息是“在文档 'xyz' 中找不到符号”)。一旦文件被编辑和保存,大纲 View 将正确填充。
这是 https://github.com/Microsoft/vscode-python/issues/2334 正在跟踪的已知问题。

关于python - Linux 上 VSCode 中 Python 的 VSCode-Python 大纲 View 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51904378/

相关文章:

git - 如何使用 VS Code 修复 git 提交错误 "Waiting for your editor to close the file..."?

import - vscode 智能感知导入在 jest ts 测试中不起作用

python - 如何在 ubuntu 上为 python3 selenium 安装 firefoxdriver webdriver?

Python unittest 在单个套接字的 tcp 服务器上进行多个测试

python3/hy - 使用 hy.eval 时,导入和全局变量不共享

python - 重复数据帧中的行 n 次

google-chrome - 从 vscode 和 chrome 调试 firebase auth 应用程序不起作用

visual-studio-code - VSCode : How to split editor using same shortkeys as Sublime Text

visual-studio-code - 我可以禁用 vscode 中显示错误消息的红色覆盖框吗?

python - 如何处理 SWIG 中的函数模板?