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

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