Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-395

Please add option to automatically add closing tag after close the start tag

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Next
    • None
    • None

    Description

      In Visual Studio (Attachment: Visual Studio endtag completion) you can see that, when I type: "<div" and then type ">" (Without quotes) I don't get a popup which shows me the end tag, it will add the end tag automatically, which is very nice.

      For my perspective, many people will write the start tag and the end tag after this so why do we need the extra popup? with only one entry? For those who don't want/need it, it would be nice if we can have an option for (X)HTML and XML to enable/disable: Add end tag automatically. And if you have divs, and you forgot a parent element, so you will surround the code. So in my opinion, there won't be big problems for this very nice enhancement.

      Same exists in WebStorm and I guess in VS Code too.

      The current behaviour is: type "<div" and after this type ">" and the code completion popup comes up with only one entry, the closing tag. This is not needed in my perspective.

      If so, then we should make it optional with an option like: "Enable automatically closing end tags" or whatever.

      This will make you much more productive.

      Regards

      Chris

      Attachments

        1. visualStudioEndTagCompletion.gif
          127 kB
          Christian Lenz

        Activity

          People

            Unassigned Unassigned
            chrizzly Christian Lenz
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: