Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically expand snippets without opening suggestion window in VS Code?

I've installed VS Code extension named dsznajder.es7-react-js-snippets to quickly type boilerplate ES7 code.

So when I type imd a quick suggestion shows up enter image description here

and then by pressing Tab this snippet expands enter image description here

I want to get the following behavior:

  1. Disable Quick Suggestion so it will not be showed up automatically
  2. Create keyboard shortcut which, after I typed imd, and called shortcut will expand snippet automatically (without showing suggestion / autocompletion windows and needing to navigate to snippet)

How would I do that?

like image 713
likern Avatar asked Oct 14 '25 16:10

likern


1 Answers

Add the following to your user settings:

{
  "editor.tabCompletion": true,
  "editor.quickSuggestions": {
    "other": false,
    "comments": false,
    "strings": false
  }
}
like image 132
jabacchetta Avatar answered Oct 17 '25 20:10

jabacchetta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!