This plugin is to convert the following XML file
<html>
<head></>
<body></>
</html>to this:
<html>
<head></head>
<body></body>
</html>It replaces </> with the corresponding tag name.
- Package control: Use Package Control and search for "CompleteXmlTag".
- Manually:
Go to
Sublime Text → Preferences → Browse Packagesand clone the repo to this directory and rename the repo folder toCompleteXmlTag.
- Open the command pallette and type
complete close tag. - Click
Sublime Text → Selection → Format → Complete Close Tag.
Not only the xml file can be formatted by this package, it also supports
other XML-based file type. Just by modifying the settings file this way:
{
"file_selectors": ["text.xml", "text.html"]
}and the html file can also be formatted.
This software is distributed under MIT license (see License for details).