IntelliJ IDEA 2020.1 Help

XML

IntelliJ IDEA brings powerful XML editing support that includes:

IntelliJ IDEA uses Xerces 2.11, an XML parser developed by Apache Software Foundation Group.

To import an XML namespace

  1. Open the desired file for editing, and start typing a tag. If a namespace is not bound, the following prompt appears:

    unboundNameSpace1.png

  2. Press Alt+Enter. If there are multiple choices, select the desired namespace from the list.
    unboundNameSpace2.png

    Depending on the file type, IntelliJ IDEA creates a namespace declaration, or a taglib:

    unboundNameSpace3.png

Configuring syntax highlighting

You can configure XML-aware syntax highlighting according to your preferences and habits.

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Editor | Color Scheme | XML.

  2. Select the color scheme, accept the highlighting settings inherited from defaults or customize them as described in Configuring Colors and Fonts.

Last modified: 15 April 2020