Will automatically add closing tags when you complete the opening tag.
Install using
apm install autoclose-html
Under normal circumstances ending tags will be inserted on the same line for inline elements and with \n\t\n
in between for block elements. This is determined by attaching an element of the given type to the window and checking it's calculated display
value.
You can use Force Inline and Force Block preferences to override this.
0.7.0 Note: Removed the option to enable/disable auto closing. Just disable/remove the plugin to stop.
Comma delimited list grammar names other than HTML will be used to run this package. Use "*" to run under all grammars
Elements in this comma delimited list will render their closing tags on the same line, even if the display check yields block.
Elements in this comma delimited list will render their closing tags with an empty, tabbed line between. If for some reason you think you're being tricky and put an element in both Force Inline and Force Block, block will override inline.
Elements in this comma delimited list should not render a closing tag
Will convert elements in Never Close list from <br>
to <br />
Under normal circumstances this package will only run in editors with HTML set as the grammar. If you would like to force it to run else where, check this. Please note templating languages which use
This option was removed in 0.9.0, if you had it checked prior to that Additional Grammars will be set to "*" on load<
and >
for things other than HTML will likely trigger false-positives/be annoying.
- Add option to autocomplete after
</
of closing tag. (requires parsing of whole document to figure out what the open element is)