'Weird snippet in VSCode

enter image description here

Does anybody know what this weird snippet is? It doesn't expand into anything.

These block-looking snippets underneath are VSCode's built-in snippets, but this first one is useless and it forces me to press the down arrow every time I want to use any loop. It doesn't have anything to do with my extensions and options and I can't get rid of it.



Solution 1:[1]

It is not a snippet, for is a keyword in the language you're coding. So it's just a suggestion for code completion.

In Python def is a keyword to create functions:

enter image description here

Check this page from document to see the explanation of the other icons.

Also if "pressing down arrow" bothers you, you have an option to set the visibility of the snippets on the top of the suggestion list:

"editor.snippetSuggestions": "top",

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1