'In VS Code, how do you make IntelliSense show all object keys without typing a character?
In my example I'm using TypeScript, so let's say I have a TypeScript Interface like this:
interface Item {
name: string,
qty: number,
price: number
}
When I go to implement this, I start typing something like this:
const item = <Item>{
}
now, with the current behavior I would type in a character, and IntelliSense will popup with some suggested parameters that have that character in it, for example if I enter e it will pop up with name and price but not qty for obvious reasons.
So I sometimes forget all the parameters, and I find myself hitting a random letter on my keyboard hoping that the parameter I'm trying to remember contains that character.
Is there any way to make it so when I open up those brackets, or hover over them, it just shows me ALL the parameters for this Interface?
Solution 1:[1]
Solution 2:[2]
CTRL+Space for Windows, or Control+Space for Mac.
This opens the list for all the proper components you can use for the place where the cursor is.
Solution 3:[3]
In Linux(in my example, Ubuntu 20.04 Desktop), you can use "Ctrl+i" to get the available options pop up automatically.
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 | Dharman |
| Solution 2 | connexo |
| Solution 3 | Leon Tseng |


