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 205K
  • Win 82K
  • Mac 83K
  • Linux 40K
May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 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
Windows 10 2 7 15 14 26 24 21 5 6 12 13 19 17 12 8 6 15 13 26 26 23 7 11 13 22 13 27 16 9 8 12 15 19 23 18 3 3 18 19 15 19 13 10 6 11
Mac 8 3 7 23 27 16 33 8 11 2 13 21 10 24 20 7 3 24 22 22 27 25 6 7 15 26 26 20 22 6 2 20 28 25 33 17 5 8 24 23 21 22 18 13 7 17
Linux 4 5 1 3 11 12 14 7 4 1 7 3 4 8 11 7 6 11 9 16 2 19 1 4 5 3 9 10 6 2 0 9 8 8 9 10 1 5 11 7 9 7 2 4 1 12

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