Auto formatting of code

(imported topic written by sinucus)

Is there a tool or something that will assist me with formatting of relevance language?

Sometimes when I’m writing code, or using code I’ve copied from somewhere it is quite difficult to modify as it gets mashed into 1 line. Is there some automated way to break out the code to groups of () or if->then loops?

Thanks

(imported comment written by Lee Wei)

Most of the tools (such as the Fixlet Debugger, Presentation Debugger in the TEM Console) will have menu options to “Indent Relevance”, which will format the Relevance for readability.

(imported comment written by sinucus)

Ahh, yes. That is exactly what I was looking for. I always use the qna tab and that feature is not available. I copied my “Session relevance” from the “BigFix Session Relevance Tester” over to the ‘single clause’ tab of Fixlet Debugger and used the Indent Relevance button…

Thanks again!

(imported comment written by Lee Wei)

Hehe, you accused my Session Relevance Tester of not doing the indenting - so I am forced to defend myself. :slight_smile:

The version that I use is 8.0.627 and it has a button to “Indent” or “Flatten”.

BigFix Session Relevance Tester 8.0.627

Lee Wei