VS Code未显示有用的Python代码段 [英] VS Code not showing useful Python code snippets
问题描述
Visual Studio Code不再显示Python代码段.我不知道这是Python Language Server(我已经尝试过Jedi,Microsoft和Pylance)的错误还是VSCode问题.
Visual Studio Code is not showing Python code snippets anymore. I don't know if this is a bug from Python Language Server (which I have already tried Jedi, Microsoft and Pylance) or a VSCode problem.
它过去常常显示有用的类代码段."如果_ name _ ='_ main _'"和def语句.
It used to show useful code snippets for classes," if _name_ = '_main_' " and def statements also.
不幸的是,我没有以前的照片,但是现在不再显示这些摘要了.
Unfortunately I don't have any pics of how it used to be, but now it doesn't show me these snippets anymore.
推荐答案
这些片段已在Python扩展的2021.1.0版(2021年1月21日)中删除,请参见其
The snippets were removed in version 2021.1.0 (21 January 2021) of the Python extension, see their changelog.
You can get them back though by copying them from here and after that following these instructions.
这篇关于VS Code未显示有用的Python代码段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!