Notepad++ XML autocompletion / add end tag?
Solution 1
I know there is an HTML plugin that is included in the recent versions which does some tag closing for you. But I haven't heard of a XML one. There is probably one out there though if you look. But if not, its not too hard to write a plugin using C#, if you have it.
Solution 2
First, download the TextFX plugin using Plugin Manager
Plugins > Plugin Manager
Then select the following menu
TextFX > TextFXSettings > Autoclose XHTML/XML <Tag>
Solution 3
For newer versions of Notepad++ try
Preferences > Auto Completion > Auto Insert > html/xml close tag
Note that the file extension must be .xml, .html, etc.
for this feature to activate. I'm not sure when this feature was introduced but it is in v6.7.9.
Solution 4
XML Tools
from the Plugin Manager
can do the trick as well. Then once download the plugin, tick Tag auto-close
in Plugins > XML Tools
stefan.at.wpf
Updated on July 08, 2022Comments
-
stefan.at.wpf almost 2 years
In Notepad++ (latest version 6.1.2), is there any auto completion for XML (in terms of automatically add closing tag)?
E.g. when typing
<test>
I want Notepad++ to automatically add
</test>
Thanks for any hint!