Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code autocomplete starts from bottom of list instead of known properties

Recently when I'm launching autocomplete (a.k.a. in VS Code Intellisense) via Ctrl + Space my suggestion list is presented from the very bottom of list (note the slider position):

enter image description here

Usually at this place absolutely non-matching properties are placed so I have not much help from suggestions in such case. VS Code has good knowledge on shape and form of types I'm working with (it's written in TypeScript) so it's expected to present known properties as first (at top of suggestion list)
Does anyone know hot to fix such issue?

This seems to occur at random places, in approximately 70% of hits it's presenting correct list (starting from top)

like image 799
Tomas Avatar asked Apr 10 '18 10:04

Tomas


People also ask

How do I change autocomplete in VS Code?

Select “Text Editor” in the left pane. Select the language you are using (C#, C++, Basic, etc.). For C# and Basic, choose “IntelliSense“. ... For C# and Basic, check the “Show completion list after a character is typed” to disable it.

Why is my autocomplete not working in VS Code?

Why is VS Code suggestions not working? If you're coding in JavaScript or TypeScript and finds that VSCode IntelliSense does work but does not behave properly, it's likely that you've selected the wrong language mode. TypeScript and JavaScript share the same language service, so you need to select the right language.


1 Answers

Configuring the settings should solve the issue:

{
    "editor.suggestSelection": "first",
    "editor.snippetSuggestions": "top"
}

More about how to customize IntelliSense in Visual Studio Code: here

like image 78
Chirag Bhansali Avatar answered Oct 23 '22 11:10

Chirag Bhansali