RobotStudio event

Format document improvments

I don't know if this is the right place to request features, but it would be very nice if Format Document feature in robotstudio didn't move comments to a new line.

For example, this line:
reg1:= 55; !Here i'm setting reg1 to 55.
will be formated to this:
reg1:= 55; 
!Here i'm setting reg1 to 55.

It would be nice if comments was allowed to be after semicolons. 

Systemintegrator - Web / C# / Rapid / Robotstudio

If I helped, please press Vote Up  :smile:

Comments

  • This is the right place.

    And I agree with this suggestions as well.

    I'll run this by R&D when I have a chance.

    Maxim Riabichev
    PC Software Support Engineer
  • DenisFR
    DenisFR ✭✭✭
    edited March 2023
    Hello,
    In same time, if you can ask:
      - To use the same indent as controller (tab)
      - Add space after comma as controller
      - Take care of casing of \Inpos in (WaitTime, WaitRob, etc.)
    So the code write in RS or by the pendant are the same.

    PS: Didn't see your post in other thread. ;)

    PPS: And well indent when using space to format. Like:
    <tab><tab>SomeCode withsomeparam,
    <tab><tab><spaces> otherparam...
    For now it add <tab> in new line. And Format don't change it.
    Post edited by DenisFR on
  • I don't know if this is the right place to request features, but it would be very nice if Format Document feature in robotstudio didn't move comments to a new line.

    For example, this line:
    reg1:= 55; !Here i'm setting reg1 to 55.
    will be formated to this:
    reg1:= 55; 
    !Here i'm setting reg1 to 55.

    It would be nice if comments was allowed to be after semicolons. 

    I spoke to RobotStudio R&D and they've said that this is a difficult issue to implement for them, because it relies on the RAPID interpreter/compiler built into the controller.

    So my suggestion is to reach out to your local ABB and send this in a feature request to the controller team. If they accept it and implement it, the RobotStudio devs will adapt the RAPID editor in RS to follow the syntax.

    This is also in a way related to the other >suggestion<, regarding formatting of RAPID-code. I.e. RS should format the code like it is formatted in the controller.

    Maxim Riabichev
    PC Software Support Engineer