How to trigger vscode intellisense using keyboard on osx?

橙三吉。 提交于 2020-01-24 17:30:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!