Is there a way to re-indent a block of code? I'm looking for something similar to Ctrl+Shift+F in Eclipse (Auto-Format/Indent).
To be clear,
I already know about NppAutoIndent - it won't work, as I'm working with XML, HTML and CSS.
So if you indent one line while typing, Notepad++ will maintain that indentation on subsequent lines, until you change the indent level one way or the other. If you use a plugin like XML Tools, you can use the plugin's menu to “pretty print” the XML/HTML, but that's not a live as-you-type formatting.
To access XML formatting options, choose Tools > Options > Text Editor > XML, and then choose Formatting.
Since I upgraded to 6.3.2, I use XML Tools
.
In older versions: menu → TextFX → HTML Tidy → Tidy: Reindent XML.
Install Tidy2 plugin. I have Notepad++ v6.2.2, and Tidy2 works fine so far.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With