typesafe-config-eclipse
typesafe-config-eclipse copied to clipboard
Formatter behaviour
Not sure where the formatter settings for this come from in the Eclipse preferences as there is nothing under Hocon.
- I cannot tell it to use Spaces instead of tabs :(
- Running the formatter seems to constantly shift some elements to the right.. for instance:
fast {
......
monitor = {
interval = 1
unit = MINUTES
cpu = true
memory = true
}
...
}
Formating this twice i end up with:
fast{
....
monitor = {
interval = 1
unit = MINUTES
cpu = true
memory = true
}
...
}
There are not settings for formatting, unfortunately. I'll try to look into it over the weekend.
Formatting comes "for free" from Xtext, I guess the grammar has something that confuses the default formatter.
I think the use spaces instead of tabs comes from the General editor (seems to be doing this now), just doesn't change them when i run the formatter, cheers