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 226K
  • Win 91K
  • Mac 92K
  • Linux 43K
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 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
Windows 2 6 3 11 11 9 12 19 2 6 10 18 15 14 23 3 1 9 15 20 15 4 8 11 7 9 18 14 19 5 5 12 13 18 19 11 6 3 15 18 15 16 14 8 8 6
Mac 5 3 5 15 18 15 29 21 5 10 15 18 20 18 16 3 6 24 22 18 12 5 1 9 11 15 12 10 20 4 2 12 21 23 16 13 8 12 19 13 19 22 19 6 14 14
Linux 3 3 1 6 4 4 4 7 1 2 3 8 2 4 6 3 2 3 2 4 7 5 2 6 3 4 2 7 3 2 1 2 6 7 7 6 6 5 8 6 9 5 4 1 4 8

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