Closed ramya-rao-a closed 7 years ago
I hadn't noticed the comment that I had to reload VS Code to get these settings to take effect. So I eventually got this to work.
I cannot get the extensionsPath part of the test to work I created the snippets.json, syntaxProfiles.json and preferences.json files as described They are all saved inside a folder named test, inside my Jan2017Test workspace I set the extensionsPath setting to /Users/stevenclarke/jan2017test/test but I don't see anything different when I try to expand the a tag in an html file
Testing #11679
Complexity: 3
Helpful links:
Clear all emmet related settings.
<div></div>
a =><a href=""></a>
)br
,hr
,input
,img
) expand just to a single tag like<br>
,<hr>
,<input type="text">
,<img src="" alt="">
.title
would expand to<div class="title"></div>
Settings from external files:
syntaxProfiles.json
with content:{"html":"xhtml"}
preferences.json
with content:{"css.color.case": "upper", "css.intUnit": "pt" }
snippets.json
with content:emmet.extensionsPath
with value as absolute path to this folder.Now repeat your previous emmet expansions with html and css. The settings from the 3 json files would be loaded and you will see the below differences
<br />
,<input type="text" />
etc. This is due to thesyntaxProfiles.json
a
that would previously expand to<a href=""></a>
, now expands to<a href="" target=""></a>
. This is due to thesnippets.json
m10
now expands and usept
instead ofpx
. Andc#1c
when expanded has upper case. This is due topreferences.json
.Add the below to your settings file.
Now repeat your previous emmet expansions with html and css. The User/Workspace settings should override the settings from the external files and you would see the below differences:
.title
now expands with single quotes for attributes instead of doublec#1C
andc#1c
both will get expanded with lower caseNote:
~
not supported inemmets.extensionsPath
at the moment