apm install atom-move-line
This package takes care of trailing commas when moving lines in json with ‘editor:move-line-up’ and ‘editor:move-line-down’. It also removes any trailing spaces from the moved lines.
Features - Support of multiple cursors - Support of multiline selections - Works for multiline objects and arrays - Moving comma is collapsed in undo/redo history with move-line command - Cursors and selections are preserved
The base of this functionality is inspired by JetBrains products.
Please, report any bug You find.