Go to file
Peter Gassner e3604b5f0c Configure json.dumps() to use an item separator of "," instead of the default ", " to prevent single whitespace at the end of lines.
Without this option, all prettyfied JSON has one space at the end of each line, which is not so pretty:

{
  "key": "value",_
  "key": "value",_
  "key": "value"
}

This could of course be configured, but with the current simplicity of the package it would probably be overkill.
2012-02-23 08:36:26 +01: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 converting tabs to spaces 2012-02-09 09:42:28 +01:00
PrettyJson.py Configure json.dumps() to use an item separator of "," instead of the default ", " to prevent single whitespace at the end of lines. 2012-02-23 08:36:26 +01:00
README.md Readme changes 2012-02-09 09:48:10 +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: super+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_size - 4

sort_keys - true

Thanks

https://github.com/the3rdhbtaylor