Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (20.3k points)

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 how to format XML outside of Notepad++ (Eclipse works fine, as mentioned) so I don't need a bunch of links to other XML-formatting tools.

I'm specifically working with XML and HTML.

Ideally, there's a keybinding as convenient as the one in Eclipse, so I don't have to break my workflow.

I already know about NppAutoIndent - it won't work, as I'm working with XML, HTML, and CSS.

1 Answer

0 votes
by (40.7k points)

If you are working on 6.3.2 version, then you can use XML Tools.

First, Install XML Tools via the Plugin Manager. Then use the shortcut Ctrl+Alt+Shift+B (or menu -> Plugins -> XML Tools -> Pretty Print)

For older versions, you can follow these steps: menu -> TextFX -> HTML Tidy -> Tidy: Reindent XML.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 18, 2019 in Java by Shubham (3.9k points)

Browse Categories

...