sveltejs / svelte-atom

Syntax, diagnostics, and other smarts for Svelte in Atom
MIT License
30 stars 11 forks source link

Open up html tags on enter #4

Closed marcusnewton closed 2 years ago

marcusnewton commented 5 years ago

I'm too much of an idiot to fix it myself.

// the symbol | denotes where the cursor is

<div>|</div>

Pressing enter should do this:

<div>
    |
</div>

Currently it does this:

<div>
|</div>
rixo commented 2 years ago

I don't think this is a responsibility of this plugin, that's more of an editor concern. I see the same behaviour you describe in an simple HTML file. I don't know of any editor settings in Atom that would do that, but maybe you can find a plugin that implements the feature.