Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emmet extensions_path option #11679

Closed
drgullin opened this issue Sep 8, 2016 · 2 comments
Closed

Emmet extensions_path option #11679

drgullin opened this issue Sep 8, 2016 · 2 comments
Assignees
Labels
emmet Emmet related issues feature-request Request for new features or functionality
Milestone

Comments

@drgullin
Copy link

drgullin commented Sep 8, 2016

  • VSCode Version: 1.4.0 (2016-08-04T16:39:36.387Z)
  • OS Version: OS X El Capitan 10.11.3

There's an extensions_path option for Emmet in Sublime and Atom, which allows you to have an external source for preferences.json and snippets.json.

You can easily extend Emmet with new actions and filters or customize existing ones. In Preferences > Emmet, set Extensions path to folder with Emmet extensions. By default, it’s ~/emmet, e.g. emmet folder in your system HOME folder.

https://github.com/emmetio/emmet-atom#extensions-support

It's not available in the latest version of editor.
Can this option be ported into Visual Studio Code?

@egamma egamma added the feature-request Request for new features or functionality label Sep 11, 2016
@drgullin
Copy link
Author

drgullin commented Oct 4, 2016

Any progress on this issue? I've a long list of the snippets to use for Emmet (both CSS and HTML), if I add them to my settings.json, it will become messy, that's why an extended file is appreciated.

@ramya-rao-a
Copy link
Contributor

@fronteed This is now implemented and should be in tomorrow's insiders build. Can you give it a try and provide feedback?

  • The setting to use is called emmet.extensionsPath
  • You need to provide absolute path at the moment.
  • The files snippets.json, syntaxProfiles.json and preferences.json will be read from this directory.
  • emmet.preferences and emmet.syntaxProfiles settings will take precedence over the contents of the above file
  • The files are read once and cached. Will be re-read on VS Code reload or whenever there is a change to emmet.extensionsPath

More on emmet customization: http://docs.emmet.io/customization/

@ramya-rao-a ramya-rao-a added this to the January 2017 milestone Jan 19, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
emmet Emmet related issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants