If it's over 1 GB and single line you're almost always going to exit the editor, run some scripts on it, and open it again when it's correctly formatted.
I don't want to chase separate tools that can format different text files, that's what editors are for.