2016年12月14日 星期三

解決Visual Studio Code的Suggest功能Ctrl+space和中文輸入法衝突

因為在editor中的Suggest功能Ctrl+space和中文輸入法衝突,所以
改Keybinding為alt+s

方法如下:
1.選File/Pref/Keyboard Shortcuts
視窗左邊為Default,視窗右邊為自訂

2. 視窗左邊用ctrl+F找Ctrl+space,複製設定到右邊視窗
改成

// Place your key bindings in this file to overwrite the defaults
[
{ "key": "alt+s",            "command": "editor.action.triggerSuggest",
                                     "when": "editorHasCompletionItemProvider && editorTextFocus && !editorReadonly" },
]

3. 如下圖

沒有留言: