microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.69k stars 28.69k forks source link

Test: Emmet profile, preferences and snippets from external files #19079

Closed ramya-rao-a closed 7 years ago

ramya-rao-a commented 7 years ago

Testing #11679

Complexity: 3

Helpful links:

Clear all emmet related settings.

Settings from external files:

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

Add the below to your settings file.

"emmet.syntaxProfiles": {
      "html": {
            "attr_quotes": "single"
             }
},
"emmet.preferences": {
      "css.color.case": "lower"
}

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:

Note:

stevencl commented 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