Skip to content

Fixed-Format Nesting #2193

Closed as not planned
Closed as not planned
@TheLittlePeace

Description

@TheLittlePeace

Is your feature request related to a problem? Please describe.
I'm attempting to make the switch from RDi to VSCode, but one feature that RDi has that I use constantly with our legacy code is the nesting view (ctrl-shift-O) for fixed-format RPGLE code. This was brought up in this discussion thread and seems to have died since.

Describe the solution you'd like
It would be great to be able to have either

  1. When you have your cursor over an IF or other nest-able statement, it highlights the matching ELSE and ENDIF, similar to how brackets can be highlighted with their match
  2. (preferred) have the same outline arrows that RDi has, which can show multiple nest levels.

Describe alternatives you've considered
Obviously the "correct" way to handle it is to convert the code to free and use tabbing, but in many scenarios that isn't feasible and slight overkill when all you want to do is determine when something happens.
The old way of doing this was to manually put numbers in columns 1 thru 5 to give some form of visual, but once again that feels unnecessary.

Additional context
How it looks in RDi:
RDi_Nesting

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaFeature suggestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions