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

JSON Reindent

by ThomasKliszowski ALL Trending

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

Details

Installs

  • Total 223K
  • Win 90K
  • Mac 90K
  • Linux 43K
Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4
Windows 8 15 14 14 18 3 3 10 20 10 18 12 5 7 10 19 12 16 12 5 6 12 17 16 10 10 5 6 11 11 14 13 11 5 7 12 20 14 12 24 7 6 17 14 9 13
Mac 10 17 23 17 10 4 7 13 16 13 14 14 5 5 13 9 18 19 19 3 3 13 10 12 18 17 6 5 20 14 15 26 10 5 9 10 13 17 25 16 6 4 23 20 15 19
Linux 0 4 7 2 5 4 1 4 6 7 5 4 6 2 3 5 6 7 4 2 2 4 8 4 4 10 4 3 4 5 5 5 8 0 2 9 4 6 3 7 1 2 3 4 6 3

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