visual-studio-code

Ctrl + Space not showing any suggestion in VS Code


I am facing a problem for my macbook in VS Code, which is I am not getting any suggestions for my TypeScript IntelliSense.

type User = {
  name: string,
  age: number
}

const user:User = {
//If I press "ctrl+space" I am expecting to get the suggestions. Which is not happening.
}

Am I expecting things wrong? Or is something wrong?


Solution

  • In my case there was a native OSX shortcut shadowing CTRL+Space.

    First check that the completion is effectively working by writing a dot "." after an object or opening a parenthesis after a function name.

    If this works then try deactivating the OSX shortcut by going to Preferences > > Keyboard > Keyboard shortcuts > Input sources > Select the previous input source

    Restart VSCode.