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 131K
  • Win 53K
  • OS X 53K
  • Linux 26K
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 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3
Windows 4 11 42 40 46 40 31 8 14 24 31 45 29 34 14 21 25 37 33 33 43 18 12 24 41 30 40 46 11 17 27 41 50 17 39 11 11 30 38 34 43 34 10 13 30 43
OS X 3 13 25 35 38 36 40 10 6 26 40 40 29 34 7 7 31 40 40 30 20 10 6 32 42 30 37 40 13 17 35 36 37 26 35 7 8 23 29 46 43 28 10 8 30 34
Linux 0 10 12 18 13 17 10 8 7 14 17 16 19 10 5 7 9 20 14 19 16 6 9 10 19 25 24 19 9 7 15 16 12 10 20 1 6 20 20 15 22 17 7 9 20 13

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