How to indent JSON and XML

In order to indent JSON and XML with sublime please follow this process

Install indent XML tool with Package Control

1. Install Sublime 

2. Install the Package Controller

  • Access this web site 
  • Copy the proper python code depending on the sublime version that you chose
  • Open the sublime console
    • View -> show console
  • Paste the copied python code
  • Hit Enter

3. Crtl + Shift + P

4. Type Install Package

5. Crtl + Shift + P

6. Type Indent XML

7. Select the Indent XML tool

8. Hit Enter 

Indent with package control

1. Set the json or xml code in sublime

2. Crtl + Shift + P

2. Type Indent JSON or XML