How to turn on the autocompletion in custom-made snippets in VSCode?
I create my snippets in javascriptreact.json
"importReact": {
"prefix": "import-stateless",
"body": ["import React from 'react';"],
"description": "import React statement"
},
"consolelog": {
"prefix": "import-stateless",
"body": ["console.log($1);"]
}
and use in my_file.js:
import | from '|'
...
const variable = '';
console.log( | );
...
The problem is:
when I type rea in import statement or varia in console.log - VSCode doesn't propose finish my word as react or variable
It's problem with custom snippets only, because while manual typing
import React from 'r it autocompletes the word react;
Thanks
