Format xml in Notepad++

I have Notepad++ and XML Tools plugin installed. When I copy an XML file and paste it to the window. It became one line. How can I auo format it and make it readable?

Thanks.

The demo image likes: image


Solution 1:

Plugins -> XML Tools -> Pretty Print (XML only - with line breaks)

Solution 2:

How about Plugins - XML Tools - Pretty Print (XML only - with line breaks)? Default shortcut Ctrl+Alt+Shift+B. This should make your XML very readable.

Solution 3:

If you don't find the plugin you want to use (eg.: XML Tools), just add it by clicking:

Plugins -> Plugin Manager -> Show Plugin Manager

Find, select and install it. When you re-open Notepad++, it'll be listed under the Plugins menu. After that, do what they've already said: Plugins -> XML Tools -> Pretty Print (XML only - with line breaks)