This probably should be posted in feature request subforum. But indentation should be a habit we form by ourselves. We can't rely all the time on the software to do it all, since we are also creating the script at the same time.
But in PC, you can use Notepad++ with JS Tool. There is a feature in the plugin - JSFormat, which will format Javascript or JSON in the proper and nice indentation. Automagic is very close to javascript and in most cases, the result is also neat.
Editor with auto indent
Moderator: Martin
Re: Editor with auto indent
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.