VS Code未显示有用的Python代码段 [英] VS Code not showing useful Python code snippets

查看:153
本文介绍了VS Code未显示有用的Python代码段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

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