ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

JSON Reindent

Sublime Text 2/3 Plugin - JSON Reindent: reindent file or selection

Details

Installs

  • Total 204K
  • Win 82K
  • Mac 83K
  • Linux 39K
Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1
Windows 13 9 8 12 15 19 23 18 3 3 18 19 15 19 13 10 6 11 19 18 25 21 2 10 14 24 21 21 15 10 6 21 18 22 27 15 10 6 17 17 26 24 21 6 8 21
Mac 14 6 2 20 28 25 33 17 5 8 24 23 21 22 18 13 7 17 22 20 23 23 4 10 24 30 32 34 18 3 2 24 17 28 23 21 5 7 15 20 34 21 23 6 5 15
Linux 5 2 0 9 8 8 9 10 1 5 11 7 9 7 2 4 1 12 5 10 9 6 5 0 8 4 3 9 18 7 1 5 8 9 3 12 1 3 9 10 10 10 8 2 3 10

Readme

Source
raw.​githubusercontent.​com

JSONReindent

Build Status

Description

Sublime Text 2/3 Plugin - JSON Reindent: reindent file or selection

Usage

Open your Sublime Text command palette (Ctrl+Shift+P) and type “JSON Reindent”.

This will reindent your whole file, or your selection if exists.

The error output is in your Sublime Text Console.

Logs

  • 2.0.0: Use PyYAML to parse user input because YAML is a superset of JSON. This way, the script is less restrictive than the use of the JSON parser, ie: the plugin is able to parse a JSON with trailing commas. In addition to that, you can parse a YAML file and format it to JSON by using this plugin.
  • 1.1.1: Fix non-ascii bug.
  • 1.1.0: Disable sorting by default, add a settings file to enable it (see Settings > JSON Reindent > Settings - Default) only on ST3.
  • 1.0.1: JSON Reindent now uses users's tab_size instead of 2 spaces to indent json
  • 1.0: Enable user to reindent current file or selection (single or multiple), silent if it can't