End-Tag-Auto-Completion is a natural result of the CodeInsight operation . After you choose an element name from the popup list of names generated by the CodeInsight, the corresponding end-tag will be inserted.