Pretty-print content of project sll file

What do you want to achieve?

I’d like the changes to the project SLL file to be easier to view in source code version control.

Do you see alternative options and workaround to achieve it?

It is possible to pre-process files before generating differences, but I would prefer not to.

Mention some use cases

When merging multiple changes from a designer or designers, it’s useful to be able to clearly see what changed, and what parts need chosen in the event of a conflict.

UI design files are usually very large, but the SPJ is formatted in a way that git can show what changed easily. The SLL file is much smaller, but because it is stored in a single line it is very difficult to interpret differences. Here’s the first few lines of git-diff when checking a checkbox in the SLL file(the full diff is around 30 kilobytes, although only a single boolean value changed):

Thanks for the feedback. We understand you don’t want to use a code-formatter/pre-processor as an extra step. In the next version of SquareLine Studio we’ll format the .sll file too if you check the option Format .spj, .sll and .ecomp files in Preferences menu.

Thanks @Hermit , that sounds great!