jquerysnippets
jquerysnippets copied to clipboard
the code snippet only works for files with .js extension
Is it possible to invoke jq.. in all file types? For me its common to have java scripts in many different files.
Hi, I will add html, gym, asp, ascx, jsx to the list. Have I missed any? I don't think out would be good to add it to all file types, it could get annoying to see this pop up in unnecessary file types.
It would be nice to us to specify the type of files that we can use the extension, like we do in recent versions of VS Code with EMMET, something like:
"emmet.syntaxProfiles":{
"cfc": "html"
}
Thanks a lot for the great work!
Missing jade
I work in ColdFusion alot, so adding cfm and cfml would be great.
Please add .php
please add .tpl
Please add .blade files
Please add .ts files, thank you for making this extension available!
Open folder .vscode/extensions/donjayamanne.jquerysnippets-0.0.1. Depending on your platform it is located:
Windows %USERPROFILE%\.vscode\extensions\donjayamanne.jquerysnippets-0.0.1
Mac $HOME/.vscode/extensions/donjayamanne.jquerysnippets-0.0.1
Linux $HOME/.vscode/extensions/donjayamanne.jquerysnippets-0.0.1
Edit package.json
replace "contributes" for
"contributes": {
"snippets": [
{
"language": "javascript",
"path": "./snippets/javascript.json"
},
{
"language": "pug",
"path": "./snippets/javascript.json"
},
{
"language": "jade",
"path": "./snippets/javascript.json"
},
{
"language": "html",
"path": "./snippets/javascript.json"
},{
"language": "cfml",
"path": "./snippets/javascript.json"
},
{
"language": "cfm",
"path": "./snippets/javascript.json"
},
{
"language": "slim",
"path": "./snippets/javascript.json"
},{
"language": "tpl",
"path": "./snippets/javascript.json"
},{
"language": "php",
"path": "./snippets/javascript.json"
},
{
"language": "blade",
"path": "./snippets/javascript.json"
},
{
"language": "ts",
"path": "./snippets/javascript.json"
}
]
},
or replace package.json for https://gist.github.com/CarlangasGO/36603409171ca33089eef5a20ab85e94
Support ts, php,slim, html, tpl, cfm, cfml,blade, jade
how about cshtml files?
I tried adding it in contributes but it's not working.
Hi, I will add html, gym, asp, ascx, jsx to the list. Have I missed any? I don't think out would be good to add it to all file types, it could get annoying to see this pop up in unnecessary file types.
Can you Add cshtml Files?
Nevermind, it's okay now... Tried html and it worked. XD