herrbischoff
herrbischoff

Reputation: 3326

Better Reindent Lines Feature for Sublime Text 3

I have found Sublime Text's Reindent Lines feature to not being very reliable or helpful, especially when dealing with JSON files. Does anyone know of a way to make it work better? I know of plugins like "HTML-CSS-JS Prettify" but they only (and quite correctly, I might add) strive to work with HTML, CSS and JS respectively. I'd love to know if there is better way to indent/reindent all kinds of files.

Bonus points for any hint regarding converting from tabs to spaces (or vice versa) and reindenting correctly in one go.

Upvotes: 0

Views: 677

Answers (1)

lozy219
lozy219

Reputation: 571

pretty JSON package works perfectly for me.

You can specify the style of indentation from the package setting also. (which solves your second problem)

Upvotes: 3

Related Questions