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
Did you try the Emmet: Expand Abbreviation command or you are expecting the auto completion?
The former should work. The latter I disabled as it becomes too noisy when emmet suggestions pop up every where in the while instead of just the html/css parts of the file.
Ramya Rao (@ramya-rao-a) I can't imagine actually doing this and finding it useful. There should be a note in the description though to make it clear how to use it for people like me who don't really use the command.
This was re-used in September to be used for enabling emmet in other languages.
Back in February, I fixed a few issues around this. But the real fix is to separate the output profile settings from the language mapping settings which I have been wanting to do for a while.
I found it now emmet.syntaxProfiles & emmet.useNewEmmet: true can not coexist (
For example: I set vue to syntaxProfiles, and then set useNewEmmet: true, in the vue file emmet can not be used.
Jim (@ifzm) Are you referring to the Emmet: Expand Abbreviation command or the emmet abbreviations showing up in the suggestion list? The former should work as long as you have the mapping "vue-html": "html". The suggestions will work once they are implemented by language specific extensions. You can follow #29114
If anyone else wound up here trying to get html snippets to work in *.blade.php files, the fix is to add them to blade.json instead of html.json from the User Snippets menu.
Activity
ramya-rao-a commentedon Jun 27, 2017
Did you try the
Emmet: Expand Abbreviationcommand or you are expecting the auto completion?The former should work. The latter I disabled as it becomes too noisy when emmet suggestions pop up every where in the while instead of just the html/css parts of the file.
Tyriar commentedon Jun 27, 2017
Ramya Rao (@ramya-rao-a) I tried auto completion, if that's not supported maybe there should be a note in the setting description?
Tyriar commentedon Jun 27, 2017
Ramya Rao (@ramya-rao-a) it worked via command.
Tyriar commentedon Jun 27, 2017
Ramya Rao (@ramya-rao-a) I can't imagine actually doing this and finding it useful. There should be a note in the description though to make it clear how to use it for people like me who don't really use the command.
ramya-rao-a commentedon Jun 27, 2017
Using
syntaxProfilesfor mapping a language to one of the emmet supported ones was introduced back in September. See https://code.visualstudio.com/updates/v1_5#_settings-to-enabledisable-emmet-for-languagessyntaxProfileswas already being used for a whole different purpose. Which was to define the output profile as defnied here: https://docs.emmet.io/customization/syntax-profiles/This was re-used in September to be used for enabling emmet in other languages.
Back in February, I fixed a few issues around this. But the real fix is to separate the output profile settings from the language mapping settings which I have been wanting to do for a while.
ramya-rao-a commentedon Jun 28, 2017
Here is my proposal:
In the new emmet model, we will use a new setting
emmet.includeLanguagesto enable emmet abbreviations in languages that are not supported by default.emmet.syntaxProfileswill be used only for setting the output profile as defined https://docs.emmet.io/customization/syntax-profiles/ and not to map languages to emmet supported modesPros:
syntaxProfilesmeans exactly what was documented in the emmet website https://docs.emmet.io/customization/syntax-profiles/emmet.excludeLanguagesemmet.useNewEmmetistrueCons
emmet.syntaxProfilesto map languages will have to make a change.cc Erich Gamma (@egamma) Denis Malinochkin (@mrmlnc)
Use emmet.includeLanguages to enable emmet abbr in non supported lang…
ifzm commentedon Jun 28, 2017
I found it now
emmet.syntaxProfiles&emmet.useNewEmmet: truecan not coexist (For example: I set
vuetosyntaxProfiles, and then setuseNewEmmet: true, in the vue file emmet can not be used.ramya-rao-a commentedon Jun 28, 2017
Jim (@ifzm) Are you referring to the
Emmet: Expand Abbreviationcommand or the emmet abbreviations showing up in the suggestion list? The former should work as long as you have the mapping"vue-html": "html". The suggestions will work once they are implemented by language specific extensions. You can follow #29114Support both syntaxProfiles and includeLanguages until #29678 is reso…
6 remaining items
ifzm commentedon Jun 29, 2017
nice 👍
yordis commentedon Jul 5, 2017
Ramya Rao (@ramya-rao-a) is this deployed yet?
ramya-rao-a commentedon Jul 6, 2017
In the Insiders, yes.
For the stable build, wait for the release of VS Code 1.14
In both cases ensure "emmet.useNewEmmet" is ser to true
Elyx0 commentedon Jul 17, 2017
VERSION: 1.14
My user settings contained the following:
Emmet wasn't available in my handlebars files :(
Only fix was
"emmet.showExpandedAbbreviation": "always"ramya-rao-a commentedon Jul 17, 2017
elyx0 (@Elyx0) That is covered in #28545 Please follow that issue
kopickik commentedon Sep 26, 2017
If anyone else wound up here trying to get html snippets to work in *.blade.php files, the fix is to add them to blade.json instead of html.json from the User Snippets menu.