20

All the docs keep referring to ⌃Space to launch intellisense so as to get suggestions for config files, launch configs etc. As I understand from this chart that translates to the key combination control-space.

However on mac 10.11 ⌃Space only opens OSX Spotlight. How do I trigger vscode intelisense from the keyboard on a mac?

vy218
  • 449
  • 1
  • 4
  • 13
  • 4
    vscode v1.50 is adding `Cmd+I` (that's a capital "eye") to also trigger intellisense on the mac, and `Ctrl+I` on Windows and Linux - see https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_50.md#trigger-intellisense – Mark Oct 05 '20 at 16:38

3 Answers3

42

I am using vs code on Mac and I am a CJK user. Ctrl+Space is a shortcut for switching IMEs on my Mac.

If you open the keyboard shortcut pane (just press Command + K, then followed by Command+S), then search for trigger suggest, you will find that there are actually two shortcuts for this function:

enter image description here

So in case Ctrl + Space is taken by other programs. You can use Option + Esc to trigger suggestions. If you are using a Windows keyboard, Option key is Alt. You can also change the keybindings for this command as suggested by @Atilla Baspinar.

jdhao
  • 18,183
  • 11
  • 116
  • 203
10

^Space means Ctrl + Space, not Cmd + Space (which definitely triggers Spotlight).

You can customize keyboard shortcuts according to the doc.

vincent
  • 170
  • 2
  • 7
  • 1
    Thanks for the details - I restored my osx keyboard shotcuts (I guess at some stage some of them got changed) and now Spotlight does not open on ctl-space. I had to restart vscode and now ctl-space works as expected. – vy218 May 15 '19 at 09:37
8

From the top menu in VSCode (on MacOS) select

Code > Preferences > Keyboard Shortcuts

A list of shortcuts is displayed on code area.

Search for "Trigger Suggest". The default value is ⌃Space.

Double click and change according to your like.

I made it Ctrl+.

Atilla Baspinar
  • 755
  • 1
  • 11
  • 13