Small Helpers: Indent XML (and JSON) in Sublime Text

Tools do not have to be big to be a great help. One of those little helpers I use often when working with XML and JSON is Indent XML. It is a plugin for Sublime Text (a sophisticated text editor) and helps you to turn this

into this

 
If you work with JSON, you can do the same and turn this

into this more readable structure:

You can install this plugin using Package Control for Sublime Text 2 and 3. Select the block of JSON or XML you want to indent and call it over the selection menu:

That is all you need to do and you no longer have to work with long lines of JSON or XML. Try it!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.