简体   繁体   English

标记自动对齐和自动关闭-HTML

[英]Tag Auto Alignments and Auto Close - HTML

How do I have it so that when I open a tag in an HTML file that it will auto close the ending tag and align it properly? 我如何拥有它,以便在HTML文件中打开标签时,它将自动关闭结束标签并正确对齐? I don't see any way to auto close and I also notice that it does not align when closing the tag. 我没有看到任何自动关闭的方法,并且我还注意到关闭标签时它没有对齐。

Thank you for your help 谢谢您的帮助

I think these are what you're looking for: 我认为这些是您想要的:

https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag

https://marketplace.visualstudio.com/items?itemName=annsk.alignment https://marketplace.visualstudio.com/items?itemName=annsk.alignment

Or if you'd like to try another editor, I'd suggest Brackets or sublime(also by using plugins). 或者,如果您想尝试其他编辑器,建议使用括号或Sublime(也可以使用插件)。 Brackets has both of those functionalities out of the box. 托架具有开箱即用的所有功能。

Thank you for the response but those won't help with what I was trying to do. 谢谢您的回应,但对于我的尝试却无济于事。 In the end of the day, I am going to stay with Vim. 归根结底,我将留在Vim。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM