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 217K
  • Win 88K
  • Mac 88K
  • Linux 42K
Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 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
Windows 4 6 6 17 29 21 16 15 4 8 22 16 24 22 21 4 4 14 13 24 23 11 13 5 11 21 21 15 13 5 2 11 17 18 16 14 6 6 17 36 23 13 7 5 2 12
Mac 8 10 6 12 22 15 14 24 7 7 17 25 23 19 19 8 10 15 23 19 18 18 7 5 22 19 23 21 16 3 7 14 8 27 21 19 5 8 21 20 22 26 20 3 6 11
Linux 3 3 6 6 9 6 10 9 3 4 6 10 3 7 11 3 0 3 12 9 10 4 2 1 5 9 9 10 10 3 5 4 1 4 6 5 5 3 7 14 11 7 3 2 3 6

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