support icon indicating copy to clipboard operation
support copied to clipboard

[Feature] Break long multitask lines into multiple lines

Open laurensvalk opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Long lines, especially multitask statements are somewhat hard to see:

image

Describe the solution you'd like Change

await multitask(gripper.run_angle(500, 90), hatch.run_angle(-200, 45))

to

await multitask(
    gripper.run_angle(500, 90),
    hatch.run_angle(-200, 45)
)

if it is long. This even makes some sense as they are aligned vertically in the blocks too.

Describe alternatives you've considered Scroll horizontally.

laurensvalk avatar Jul 04 '24 12:07 laurensvalk

Is your feature request related to a problem? Please describe. Long lines, especially multitask statements are somewhat hard to see: dropped the image **Describe the solution you'd like ** Change

await multitask(gripper.run_angle(500, 90), hatch.run_angle(-200, 45))

to

await multitask(
    gripper.run_angle(500, 90),
    hatch.run_angle(-200, 45)
)

if it is long. This even makes some sense as they are aligned vertically in the blocks too.

Describe alternatives you've considered Scroll horizontally.

flake8 also does not like the long lines. 👍

BertLindeman avatar Jul 04 '24 14:07 BertLindeman

After initially setting a break only if more than two tasks were called, I'm happy to always break these lines:

  • Since this is generated code that is usually previewed in a view on the side, space is quite small by default:
  • It's vertical inside the block too, so make it match.

Image

laurensvalk avatar Feb 21 '25 15:02 laurensvalk