Vscode, what is this log?

VScodelogconsole.log(),console.log():

The

icon is a file, and selecting this does not have any effect, so it is troublesome to press the direction key to select the second one every time you enter it. Does anyone know what this is? Is there any way to get rid of it?


this is called Global Identifiers, which is a kind of VSCode autoprompt, which is equivalent to the identifier already in your code, so after you lose once, it appears in the autoprompt, which is sometimes useful. If you want to control the order in which he appears, you can change a setting, press Ctrl to add a comma, and then add "editor.snippetSuggestions": "top" to the user settings.

Menu