问题
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?
回答1:
^Space
means Ctrl + Space
, not Cmd + Space
(which definitely triggers Spotlight).
You can customize keyboard shortcuts according to the doc.
回答2:
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+.
回答3:
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:
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.
来源:https://stackoverflow.com/questions/56143239/how-to-trigger-vscode-intellisense-using-keyboard-on-osx