You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's better to use native Sublime Text snippets in your case. If you still want to create Emmet snippet, you should wrap custom text with {}, e.g. {console.log()}.
Emmet snippets are actually aliases for Emmet abbreviations, you define output structure with it
{
"config": {
"html": {
"snippets": {
"cl": "{console.log();}, // it works in html
}
},
"css" : {
"snippets" : {
"cl": "{console.log();}, // it works in css
}
},
"markup" : {
"snippets" : {
"cl": "{console.log();}" // it doesn't work in js (javascript)
}
}
}
}
For example, how to do this:
"cl": "console.log(' $ ');"
$ - cursor
Emmet.subling-settings:
{
"config": {
"html": {
"snippets": {
"test": ".gg", // working
"c": "{Hello}", // working
}
},
"css" : {
"snippets" : {
"pss" : "padding: 1px 2px 1px 2px;" // working
}
},
"markup" : {
"snippets" : {
"cl": "console.log();" // does not work
}
}
}
}
The text was updated successfully, but these errors were encountered: