PhpStorm 7.1.0 Web Help

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

  • HTML/XHTML
  • XML/XSL
DTD or Schema

Note

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

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

You can have PhpStorm 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. PhpStorm displays the list of tag names appropriate in the current context. Use the ArrowUp and ArrowDown buttons to scroll through the list.
  2. Press EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter to accept selection from the list, or continue typing the tag name manually.

    Note

    PhpStorm automatically inserts mandatory attributes according to the schema.

To insert a taglib declaration
  1. Start typing the tag and press Ctrl+Alt+SpaceCtrl+Alt+SpaceCtrl+Alt+SpaceCtrl+Alt+SpaceCtrl+Alt+SpaceCtrl+Alt+SpaceCtrl+Alt+Space or Ctrl+Alt+Back SlashCtrl+Alt+SpaceControl Alt SpaceControl 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 EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter. PhpStorm adds the declaration of the selected taglib.

    tagCompletionAfter

To import a taglib
  1. Start typing the taglib prefix and press Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertCtrl+N or Alt+InsertAlt+InsertAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter.
  2. Select the desired taglib from the list of suggestions and press EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter.

    import2

    PhpStorm imports the selected taglib and adds the import statement automatically.

See Also

Procedures:

Web Resources: