Skip to content

Feature Request: CL Language Formatter #7

@JDubbTX

Description

@JDubbTX

Please provide format capabilities similar to what the RPGLE language provides.

The CL Formatter should:

  1. Have configurations for label position, command starting position, and command continuation start position.
  2. Allow for adjusting the line length
  3. Automatically handle placement of continuation characters.

Allow for formatting of a single CL command, multiple CL commands, or an entire document.

Reason for request:
Currently CL programming in VSCODE is somewhat of a pain compared to other platforms such as RDi, or even PDM (greenscreen). Both of these platforms allow for prompting a CL command, and after prompting the CL command is properly formatted. RDi has automatic formatting capability as you type. Conversely, In VSCODE, manual placement of the continuation character is required, as well as proper indentation, etc.

It is common practice in PDM to 'prompt - F4' and then immediately press 'enter' on a CL command just for the formatting capabilities.
For context or inspiration, here is a screenshot of what RDi provides for CL language formatting and controls:

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions