Solve the problem that the shortcut key Ctrl+Space of vscode smart code prompt is invalid

background

In addition to being triggered by characters when typing, vscode smart code prompts can also be ctrl + spacetriggered by shortcut keys, but it will be found to have no effect under Windows.

Because this shortcut key is the system's Chinese (Simplified) input method - input method/non-input method switching shortcut key under Windows , it is a global shortcut key, resulting in a shortcut key conflict.

Modify system shortcut keys

insert image description here
insert image description here
insert image description here
Just change it to other shortcuts here.

sogou Input

Sogou input method has a huge pit. If you install the Sogou input method and modify the system shortcut keys, it may appear under the Sogou input method, and you are ctrl + spacestill switching between Chinese and English input, so that the smart prompt of vscode cannot be triggered.

However, as shown in the figure, there is no shortcut key for switching between Chinese and English in the Sogou input method.ctrl + space

insert image description here

Don't be fooled by its appearance. In fact, the reason is that the newly set shortcut key conflicts with the shortcut key in the Sogou input method. Just reset a new unpopular shortcut key. For example set toctrl + F8

(End of this article)

At that time, the author set it to ctrl + shift + space, and found that under the input method that comes with win10, vscode prompts that the shortcut keys are used normally, but it does not work under the Sogou input method, and has been switching between Chinese and English input. Checked the Sogou input method, switching between Chinese and English methods, and all the shortcut keys used by the Sogou input method, and found that there is no ctrl + shift + spaceconflict with it.
So I searched how to turn off the Sogou input ctrl + spacemethod to switch between Chinese and English. The answers are all unchecked ctrl + space, but there is no such option at all in the picture above? ? ? There is also the shortcut key for modifying the system to switch input methods in the previous article, but I have modified it a long time ago, it is useless! ! ! grass!
Suddenly found that the shortcut keys of the system functions in the search input method all start with Ctrl + shift, and began to suspect that although the Sogou input method did not use the shortcut keys Ctrl + shift + space on the surface, it was actually a conflict. So with a fluke mentality, I modified the system to switch the shortcut key of the input method again, oh well, the problem is solved. Gaia! ! ! !
insert image description here

Guess you like

Origin blog.csdn.net/qq_43220213/article/details/129645181
Recommended