Highlighted
Trusted Contributor.
Trusted Contributor.
267 views

LR script function arguments one line

Jump to solution

Hi there!

Is there any way, that LR place arguments of functions to one line, after script generation process?

So, like this:1.PNG

And NOT like this:

2.PNG

0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: LR script function arguments one line

Jump to solution

I don't think so. Keep in mind that function arguments can be thousands of characters. Long strings will also be broken down during code generation.

However you might enable Folding on long steps (Tools -> Options -> Editor -> Folding). Use Edit -> Folding to play with folds. The VuGen folds is as far as I know not configurable unfortunate: it shows only the function name and for some functions (a part) of some arguments. What I like is just fold down to the complete first line as default action, it will make folded code more readable.

Sometimes I like to see also longer lines though, but with a little effort you write a java / perl / python script or VIm macro that reformat your script according your needs.

 

Signature:
Reward community members who take time to respond and help.

View solution in original post

1 Reply
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: LR script function arguments one line

Jump to solution

I don't think so. Keep in mind that function arguments can be thousands of characters. Long strings will also be broken down during code generation.

However you might enable Folding on long steps (Tools -> Options -> Editor -> Folding). Use Edit -> Folding to play with folds. The VuGen folds is as far as I know not configurable unfortunate: it shows only the function name and for some functions (a part) of some arguments. What I like is just fold down to the complete first line as default action, it will make folded code more readable.

Sometimes I like to see also longer lines though, but with a little effort you write a java / perl / python script or VIm macro that reformat your script according your needs.

 

Signature:
Reward community members who take time to respond and help.

View solution in original post

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.