Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Auto close html tags #63

Open
Dentosal opened this issue May 16, 2015 · 17 comments
Open

Auto close html tags #63

Dentosal opened this issue May 16, 2015 · 17 comments

Comments

@Dentosal
Copy link

I used to use Sublime text before I changed to Atom. They had a nice feature: When writing html, if I wrote </the editor automatically completed it to full closing html tag without. It doesn't required even pressing some key to expand.

Please label this to enhancement.

@mnquintana
Copy link
Contributor

@Dentosal I think you were using some community package for that behavior in Sublime - when I type <div> in an HTML doc in Sublime it doesn't autoclose. In both Atom and Sublime however you can close open tags with Cmd/Ctrl-Alt-.. Nonetheless, this is an interesting enhancement idea.

@TechRemarker
Copy link

To add, I am also a Sublime text user. I have no extra plugin for auto complete or auto closing, just the core functionality to my knowledge.

When I type, "<div" and tab it turns it into, "

" with the cursor in between them automatically. Or If I type "
    </" it automatically adds, "ul>". Would be great if this was core functionality in Atom or at least ability to enable/disable it via a setting as I would think it's a popular feature. There is currently a plugin that does it that has been downloaded over 61K times https://atom.io/packages/autoclose-html. Since Atom is prime to be the next best text editor, I can understand not wanting to add too many core features since it can get bloated and turn into the next Dreamweaver, but hopefully some features like this may make it into core. Just my two cents though!

@maciejpi
Copy link

maciejpi commented Dec 3, 2015

@mnquintana this feature was added in Sublime 3.

@50l3r
Copy link

50l3r commented Apr 3, 2016

+1 The"</" type is more faster than shortcut

@iSimonWeb

This comment has been minimized.

@oakley808
Copy link

+1 for "</" closing tags. Love that feature in Sublime 3!

@blakeperdue
Copy link

+1 would love to be able to type "</" and have the closing tag autocompleted. Hug help for me :)

@johnmarlow007

This comment has been minimized.

@fredericpfisterer

This comment has been minimized.

@ivanpadavan

This comment has been minimized.

@QuipHop

This comment has been minimized.

@DennHa
Copy link

DennHa commented Oct 27, 2016

look at this gem
https://atom.io/packages/less-than-slash

@codengains
Copy link

@DennHa Great find bro!

@rmit-s3383245-James-McKay

This comment has been minimized.

@BenjaminHoegh
Copy link

Coda for mac have </ as closing, have use it, really miss it, totally the best type of autocomplete i ever have try

@rdaniels

This comment has been minimized.

@ForrestAM
Copy link

I agree, it was something that was really nice and I would really enjoy having it once more

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests