akkadotnet / HOCON

C# implementation of Lightbend's HOCON (Human-Optimized Object Configuration Notation)
Apache License 2.0
137 stars 39 forks source link

HOCON beautifier #42

Open jpierson opened 7 years ago

jpierson commented 7 years ago

@nomailme commented on Mon Jul 11 2016

Hi!

I've just dived into akka.net and actor model in general. Everything goes fine until I have to edit HOCON in app.config. I am always missing braces and can't understand what is where.

So my question is how do you format HOCON config file? Are there any plugins for any free text editor that can help me?

Thanks, Iskander


@kantora commented on Thu Jul 14 2016

I am using sublime text and a plugin in it. Also I moved hocon out of app.config and apply it separately.


@jpierson commented on Wed Aug 03 2016

I've found this extension for VSCode but it doesn't appear to be available in the gallery and I haven't tried it myself. Being able to support the hocon configuration to be separated out into a .hocon file would probably make this a bit easier to support in most editors... I haven't looked at whether that is supported generally in Akka.NET or not though yet.


@sean-gilliam commented on Thu Apr 06 2017

This issue probably should be directed to our HOCON repo.

https://github.com/akkadotnet/HOCON

Aaronontheweb commented 4 years ago

@jpierson so the Config object in stand-alone object now supports Config.PrettyPrint - which will produce a properly formatted version of the configuration object. We could perhaps roll this into a stand-alone tool or VS plugin, but it's available programmatically.