XML improvements in IntelliJ IDEA X

There are few small, but very useful improvements in XML editing will be available in IntelliJ IDEA 10. All of them are very handy when edit XML files like schemes, JSPs, MXMLs, etc. First of these improvements is inspection detecting unused namespace declarations.

Others include namespace prefix intentions which allow you to rename, remove or introduce namespace prefixes. Want to make you schema file lighter? Not a problem:

Rename in place:

Or introduce new namespace prefix:

Find usages works as well. Enjoy them in first IntelliJ IDEA X EAP soon.

This entry was posted in New Features and tagged , , . Bookmark the permalink.

10 Responses to XML improvements in IntelliJ IDEA X

  1. Joel Hooks says:

    will these improvements trickle down to the MXML support? :>

  2. Konstantin Bulenkov says:

    Sure, and you will be able use it in JSP too. All them based on XML-support

  3. Michael Kay says:

    Will the “namespace declaration not used” condition take into account prefixes that are used only in element or attribute content, e.g. ?

  4. Michael Kay says:

    Whoops, the XML there got swallowed.

    Will the “namespace declaration not used” condition take into account prefixes that are used only in element or attribute content, e.g. [invoice xsi:type="my:invoice"]?

  5. @Michael, yes. Moreover, in place editing works just inside such attr values: http://i30.tinypic.com/8nba.png

  6. Igor Kolomiets says:

    Nice. Will Ctrl-Alt-o work on unused declarations (similar to unused Java packages)? :)

  7. Juan Hernandez says:

    Nice improvements … keep them coming! :)

    I have some XML related ones on my “application improvements” list that I’m usually too lazy to report …
    - Allow to fold namespace declarations (similar to the Java imports folding) so they’re not visible until you hover with the mouse or unfold.
    - Fold maybe also the xsi namespace attributes like the location that usually takes a lot of space and is always the same in many XML files (eg. Spring XML configuration files).
    - Allow customising the XML formatting so that each namespace declaration is kept in one line and sorted by prefix (similar to Java or JSP imports).
    - Allow to navigate to the namespace declaration via Control-B or Control-Click. This would be even of more help in XML as the declaration can occur at any node.

  8. @Juan Thanks for feature requests. The last on is already implemented http://i31.tinypic.com/28kk16s.png (This is Ctrl+mouseover, no mouse cursor on the screen :( ) I’ll do folding soon. Nice idea!

  9. Geekycoder says:

    Intellij X ??? The roadmap for intellij x is yet to release, and yet a EAP is going to be release soon ? Surprise for us … <:^}

  10. sebge2 says:

    Another improvement is the usage of OASIS XML catalog, I have not found how to configure it (it seems that this useful feature is not implemented).

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">