IntelliJ IDEA 12.1.0 Web Help

/ Completing Tag Names

Completing Tag Names

IntelliJ IDEA automatically completes the names of tags, attributes and their values in files of the following types:

  • HTML/XHTML
  • XML/XSL
  • JSP/JSPX (available only in the Ultimate edition of IntelliJ IDEA).

Automatic tag name completion is based on the DTD or Schema the file is associated with.

In JSP/JSPX and XML/XSL files, completion for taglibs and namespaces is available.

You can have IntelliJ IDEA do one of the following:

  • Insert a declaration of the taglib the tag in question belongs to.
  • Import the desired taglib and insert all required import and reference statements.

To Invoke the Tag Name Completion

  1. Press < and start typing the tag name. IntelliJ IDEA displays the list of tag names appropriate in the current context. Use the and buttons to scroll through the list.
  2. Press Enter to accept selection code from the list, or continue typing the tag name manually.

To Insert a Taglib Declaration

  1. Start typing the tag and press Ctrl+Alt+Space
  2. From the list of matching tags, select the desired one. The URL of the taglib it belongs to is displayed in brackets.
    tagCompletionBefore
  3. Select the desired code taglib and press Enter. IntelliJ IDEA adds the declaration of the selected taglib.
    tagCompletionAfter

See Also

comments powered by Disqus