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
With fresh installs of vscode, you have to manually configure your vscode for emmet to work in svelte, as emmet does not automatically recognize svelte components as HTML.
Proposed solution
The extension when installed should by default apply this setting to vscode:
"emmet.includeLanguages": {
"svelte": "html"
},
Alternatives
Add a command to apply recommended default settings, including the one mentioned above if adding this by default is not preferred.
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered:
We do have emmet autocomplete and some special handling so I don't think we'll preconfigure the config. That said vue does seems to support emmet commands without needed the config so I'll probably check if we can do the same. If not we can probably considering about the command in the "Alterantives" selection but there is a big problem with feature discovery with this approch.
Vue actually doesn't have a special handling for it. It works because the Textmate grammar embeds HTML. Textmate grammar was mainly used in syntax highlight and some embedded language support. However, we went with another approach with a simplified HTML grammar probably because some syntax is not strictly HTML compliant. For example, the arrow in the event handler.
So if we're doing this we might go with the approach in the "Alternatives" section. But as mentioned earlier, there is a feature discovery issue. One is that you won't know the command exists. If users rely on custom keybinding. There's no chance for them to discover the command.
Description
With fresh installs of vscode, you have to manually configure your vscode for emmet to work in svelte, as emmet does not automatically recognize svelte components as HTML.
Proposed solution
The extension when installed should by default apply this setting to vscode:
Alternatives
Add a command to apply recommended default settings, including the one mentioned above if adding this by default is not preferred.
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: