I'm trying to understand how can I make Emmet work properly on .svelte
files.
The problem doesn't encounter when I'm using PHP files or HTML files.
When I'm using a simple Emment abbreviation, like div
, the output after the enter is the same for both languages (<div>|</div>
), with the cursor in the middle of the block.
Using HTML files works properly; so after pressing enter, the block will be formatted (|
represents the cursor):
<div>
|
</div>
While using .svelte
this doesn't work:
<div>
|</div>
How can I tell Emmet to indent code even in .svelte
extensions? I've tried using this in settings.json
, but doesn't work:
"emmet.includeLanguages": {
"svelte": "html"
}