Go to file
Chris Castle 7843edd433 Fixes import error in simplejson I mistakenly added 2013-02-22 23:11:36 -08:00
simplejson Fixes import error in simplejson I mistakenly added 2013-02-22 23:11:36 -08:00
.gitignore first commit of json prettify plugin 2012-02-03 15:32:42 +01:00
Default (Linux).sublime-keymap removing scope for keyboard shortcuts. sometimes (for me it's always) its usefull to have shortcuts in any type of file 2012-02-09 09:40:29 +01:00
Default (OSX).sublime-keymap removing scope for keyboard shortcuts. sometimes (for me it's always) its usefull to have shortcuts in any type of file 2012-02-09 09:40:29 +01:00
Default (Windows).sublime-keymap removing scope for keyboard shortcuts. sometimes (for me it's always) its usefull to have shortcuts in any type of file 2012-02-09 09:40:29 +01:00
Default.sublime-commands Added Default.sublime-commands to add prettyjson to the Commant Palette 2012-02-08 13:27:22 -06:00
Main.sublime-menu converting tabs to spaces 2012-02-09 09:42:28 +01:00
Pretty JSON.sublime-settings Remove debug print of decoded object and change of default ident size to 2 2012-12-28 17:17:14 +01:00
PrettyJson.py Prepend simplejson import with 'module' name 2013-02-14 19:51:12 -08:00
README.md Remove debug print of decoded object and change of default ident size to 2 2012-12-28 17:17:14 +01:00
tests.py removing importing native python json 2013-02-14 09:51:48 +01:00

README.md

Prettify JSON plugin for Sublime Text 2

Installation

Install this repository via Package Control

Usage

To prettify JSON, make selection of json and press keys:

  • Linux: ctrl+alt+j
  • Windows: ctrl+alt+j
  • OS X: cmd+ctrl+j

If selection is empty and configuration entry use_entire_file_if_no_selection is true, tries to prettify whole file.

If JSON is not valid it will be displayed in status bar of sublime.

Default configuration

use_entire_file_if_no_selection - true

indent - 2

sort_keys - false

ensure_ascii - false

Using tabs for indentation

You can change configuration key indent to string value "\t" or any other string.

"indent_size" : "\t",

Be sure "Indent Using Spaces" is unchecked otherwise you will not see effect and ST2 will convert it back to spaces.

Thanks

https://github.com/the3rdhbtaylor