sublimetext3 - filter.commentAfter by Emmet in Sublime Text 3 not work -
in emmet st3, tried customize little comment after giving tab when creating label, example #div or .span
i read solution in settings of emmet (emmet.sublime-settings):
"preferences": { "filter.commentafter" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->", "filter.commentbefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->" } but not work. please help
in user/emmet.sublime-settings file make sure have structure this
{ "preferences": { "filter.commentafter" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->", "filter.commentbefore" : "<!-- <%= attr('id', '#') %> <%= attr('class', '.') %> -->" } } and should work.
make sure dont forget |c @ end
div#test.myclass|c as if want automatically add c filter should set syntaxprofiles this
{ "preferences": { }, "syntaxprofiles": { "html" : { // auto add comments "filters": "html,c" } } } make sure it's on same level preferences
Comments
Post a Comment