VS Code Space Tab Auto Complete Intellisense

  • 287
  • 0

 VS Code Space Tab Auto Complete Intellisense

If you want to invoke Auto Complete when pressing Space,  

you can press Ctrl+Shift+P or F1,

type "key",  an option "Preferences: Open Keyboard Shortcuts" will show in the dropdownlist,

then enter this function, Default Keyboard Shortcuts and keybindings.json two files will be opened,

Add following words to keybindings.json:

    {
        "key": "space",
        "command": "acceptSelectedSuggestion",
        "when": "editorTextFocus && suggestWidgetVisible"
    }

then when pressing Space, the Auto Complete should work.

 

If you want to disable Tab Auto Complete, you can try add words to keybindings.json

{ "key": "tab",                  
  "command": "tab",
  "when": "editorTextFocus && suggestWidgetVisible  && !editorTabMovesFocus" 
}

 

Refernce link:

https://github.com/Microsoft/vscode/issues/2958