Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to omit closing tag #487

Closed
coreyworrell opened this issue Mar 1, 2017 · 9 comments
Closed

Possible to omit closing tag #487

coreyworrell opened this issue Mar 1, 2017 · 9 comments

Comments

@coreyworrell
Copy link

Many times I am writing code and need to just type out the opening tag. Would be great to possibly have option of a different key combo (tab+shift?, idk) that would omit the closing tags.

.row|
<div class="row">|

.row>a|
<div class="row">
    <a href="|">

Thank you.

@SowmyaSeshadri
Copy link

Hello,
Can you please help me understand this ? Do you mean like you don't want a closing tag ?
Thanks in advance.

@coreyworrell
Copy link
Author

Yes that's what I mean. Quite often I need to adjust existing HTML, usually to wrap some block with another element. But sometimes to be able to change a wrapper from one thing to another, while leaving the closing tag as is.

@SowmyaSeshadri
Copy link

But when you create a tag, using emmet, doesn't the cursor stay after the opening tag which will help us to add elements within it ?

@coreyworrell
Copy link
Author

Of course, that is the issue. I already have the tags within it written out. So if I were to use Emmet, I would then have a sibling element, instead of a parent element.

@SowmyaSeshadri
Copy link

Oh yeah , I get it now. Thanks!

@coreyworrell
Copy link
Author

Ok cool, thank you!

@SowmyaSeshadri
Copy link

So there is this option in Atom,
Select the contents you want to wrap
Click on Packages ->Emmet
You'll find the option called "Wrap with Abbreviation"
And then , you can add the parent element, So that it will be abbreviated by wrapping the elements.

Hope it solved the issue ! :)

@coreyworrell
Copy link
Author

Yes, I use Sublime and it has a similar feature, where it opens a little input field for you to type the wrapping element. But it could still be handy to have option to leave out all closing tags. But I understand this is probably not worth the effort for the relatively low usage.
Thanks for help!

@SowmyaSeshadri
Copy link

Glad! :)

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

No branches or pull requests

3 participants