IntelliJ IDEA 12.1.0 Web Help

8.0+

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

The following is 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.

Note

If there is no schema association, IntelliJ IDEA will use the file content (tag and attribute names and their values) to complete your input.

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

You can have IntelliJ IDEA do one of the following:

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 ArrowUpArrowUp and ArrowDownArrowDown buttons to scroll through the list.
  2. Press EnterEnter to accept selection from the list, or continue typing the tag name manually.

    Note

    IntelliJ IDEA automatically inserts mandatory attributes according to the schema.

To insert a taglib declaration
  1. Start typing the tag and press Ctrl+Alt+SpaceControl Alt Space.
  2. From the list of matching tags, select the desired one. The uri of the taglib it belongs to is displayed in brackets.

    tagCompletionBefore

  3. Select the desired taglib and press EnterEnter. IntelliJ IDEA adds the declaration of the selected taglib.

    tagCompletionAfter

To import a taglib
  1. Start typing the taglib prefix and press Alt+InsertControl N; Control Enter.
  2. Select the desired taglib from the list of suggestions and press EnterEnter.

    import2

    IntelliJ IDEA imports the selected taglib and adds the import statement automatically.

See Also

Procedures:

Web Resources: