2

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.

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.

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you, Guillermo. I was a bit lost without these snippets.
Good answer thanks. It's good to get the feature back but not sure why something this useful was removed in the first place.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.