When comparing Git Gutter vs Pretty JSON, the Slant community recommends Git Gutter for most people. In the question“What are the best plugins for Sublime Text?” Git Gutter is ranked 7th while Pretty JSON is ranked 20th.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Makes it really easy to see if a line has been inserted, modified or deleted.
Pro Has hot keys for jumping to the next changed line in the file
Git Gutter exposes the commands git_gutter_next_change
and git_gutter_prev_change
for navigating to parts of the file that are different from git. By default they're bound to ctrl+shift+alt+j
and ctrl+shift+alt+k
respectively, but you can change them in your user key bindings file.
Pro Can prettify with configurable indent and optional key sorting
To prettify look for "Pretty JSON: Format (Pretty Print) JSON" via Command Pallette. Indent, key sorting and ASCII ensurance can all be configured.
Pro Can convert JSON to XML
To convert JSON to XML look for "Pretty JSON: JSON 2 XML" via Command Pallette.
Pro Can minify
To compress/minify look for "Pretty JSON: Minify (compress) JSON" via Command Pallette.
Pro Can query
Query/filter requires ./jq and allows slicing, filtering, mapping and transforming data with ease. To query look for "Pretty JSON: jq query" via Command Pallette.
Cons
Con Directory locking causes issues when changing branches
If you have Sublime Text 3 open when switching branches directories are not removed if they are specific to a branch. This can create a real mess as the directory is treated as a new addition to the destination branch. Deleting the directory is still seen as a directory added then removed in the branch.