4

Pretty format JSON in Vim

 1 year ago
source link: https://fann.im/blog/2018/09/20/pretty-format-json-in-vim/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Pretty format JSON in Vim

Pretty format JSON in Vim

Sep 20, 2018

command! PrettyJSON %!python -m json.tool

or, coc.nvim + coc-prettier, which can format JavaScript/TypeScript/HTML/JSON using Prettier.

Was this page helpful?

Meet @fannheyward

Heyward Fann, aka fannheyward, a developer based in Beijing, China.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK