Answer the question
In order to leave comments, you need to log in
VS Code: Why don't snippets work in javascript files?
VS Code version 1.27.2
Created a global snippet file, created about a dozen of them, everything works as I need, except for one problem: snippets do not work in *.js files.
Snippet example:
"insert.nbsp": {
"scope": "html,php,javascript",
"prefix": "nb",
"body": [
" ",
],
"description": "Мнемоник "
},
Answer the question
In order to leave comments, you need to log in
Had a similar issue in VS Code. We didn't want snippets to work for js either in custom fragments in javascript.json or in new global fragments created. I started disabling installed extensions one by one, tk. I thought that there was a conflict with some of them. In my case, after disabling the Sublime Babel extension, everything worked, my snippets became available for use.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question