jquerysnippets icon indicating copy to clipboard operation
jquerysnippets copied to clipboard

the code snippet only works for files with .js extension

Open anders16000 opened this issue 9 years ago • 11 comments

Is it possible to invoke jq.. in all file types? For me its common to have java scripts in many different files.

anders16000 avatar Jan 11 '16 16:01 anders16000

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.

DonJayamanne avatar Feb 11 '16 20:02 DonJayamanne

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!

edsonpiresnunes avatar Sep 28 '16 14:09 edsonpiresnunes

Missing jade

neilyoung avatar Nov 04 '16 21:11 neilyoung

I work in ColdFusion alot, so adding cfm and cfml would be great.

HunterJoe avatar Feb 07 '17 19:02 HunterJoe

Please add .php

rzelzer avatar Mar 02 '17 15:03 rzelzer

please add .tpl

powehuda avatar Aug 24 '17 08:08 powehuda

Please add .blade files

juanhuerta avatar Sep 28 '18 16:09 juanhuerta

Please add .ts files, thank you for making this extension available!

tparikka avatar Mar 10 '19 17:03 tparikka

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

ZephiroRB avatar Mar 27 '19 22:03 ZephiroRB

how about cshtml files? I tried adding it in contributes but it's not working. image

MarFranMar avatar Nov 13 '23 03:11 MarFranMar

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

MarFranMar avatar Nov 16 '23 01:11 MarFranMar