Search code examples
notepad++

How to format a document in Notepad++


I noticed other questions about Notepad++ on this site, so I figured this was the appropriate place to ask. Mods, if this isn't the right place, please relocate.

How do you format your document in Notepad++? I'm looking for something similar to Visual Studio's Edit > Advanced > Format Document

I have a large xml document that is all on one line, I would like it to be formatted with the proper indents/whitespace and only one element per line.

Edit: Using the stock version 5.9.5 with no plug ins.


Solution

  • Download XML Tools plugin from NotePad++->Plugins->XML Tools.. Use Ctrl+Alt+Shift+B to format your XML document..