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

JSON Reindent

by ThomasKliszowski ST2/ST3

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

Details

Installs

  • Total 123K
  • Win 49K
  • OS X 50K
  • Linux 24K
Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 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
Windows 5 12 24 30 34 38 24 9 11 36 35 42 32 44 8 12 33 35 47 26 32 12 10 31 43 41 34 25 16 17 29 43 34 28 28 10 9 20 34 27 26 22 11 17 29 33
OS X 6 7 32 31 38 46 24 8 10 35 25 22 37 28 5 9 19 29 33 42 24 10 8 31 29 42 27 36 10 7 20 41 36 27 29 11 9 23 24 40 34 34 10 12 24 37
Linux 9 3 12 15 23 24 24 8 6 15 14 4 15 25 7 7 13 21 14 10 16 8 5 17 23 22 20 16 5 3 19 25 17 19 24 5 8 14 22 20 15 9 5 9 18 21

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