Linux 上 VSCode 中 Python 的 VSCode-Python 大纲视图不起作用 [英] VSCode-Python Outline view for Python in VSCode on Linux not working

查看:66
本文介绍了Linux 上 VSCode 中 Python 的 VSCode-Python 大纲视图不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Running VSCode on Ubuntu 16.04.3 VSCode Version: 1.26.1 Microsoft Python Extension: 2018.7.1

当我查看 python 文件时,大纲视图显示文档中未找到任何符号.Windows 上 VSCode 中的同一文件显示所有符号

When I view a python file the outline view shows No symbols found in document. Same file in VSCode on Windows shows all the symbols

有什么帮助吗?

推荐答案

总结在评论中找到的答案...

Summing up answers found in the comments...

打开的尚未编辑的 Python 文件将不会在大纲视图中显示任何内容(消息为在文档 'xyz' 中找不到符号").一旦文件被编辑和保存,大纲视图将正确填充.

Opened Python files that have not yet been edited will not show anything in the Outline View (message is "No symbols found in document 'xyz'"). Once the file has been edited and saved, the Outline View will populate correctly.

这是一个已知问题,正在https://github.com/Microsoft/vscode-python/issues/2334.

This is a known issue being tracked at https://github.com/Microsoft/vscode-python/issues/2334.

这篇关于Linux 上 VSCode 中 Python 的 VSCode-Python 大纲视图不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆