iRPGFormatter is a plug-in for IBM Rational Developer for i that formats fully free-form ILE RPG sources (**FREE): the control options, the declarations, the calculations, the comments and the embedded SQL statements.
Format the whole source or only the selected lines in the LPEX editor, or format many sources at once from the Remote Systems view or the Project Explorer.
Features
- Indents the calculations by the nesting of their blocks and the comment lines like the following statement
- Formats embedded SQL statements according to the RDi preferences page Free-form SQL Formatting
- Formats the branches of conditional compiling (/IF, /ELSE, /ENDIF) like the compiler
- Various formatting options, e.g. the casing style, adding or removing the keyword const(), replacing the name of dcl-pi with *N and removing the name of end-proc
- Optionally formats the calculations with the IBM formatter
- Optionally formats a source on save
- Project specific settings, e.g. for the sources of a Git repository, that the team formats the same way
- Lists the problems in the view iRPGFormatter Problems and in the ruler of the editor
- Lets AI agents like Claude Code format sources with the settings of RDi: the optional feature iRPGFormatter iAgentBridge adds the tool format_rpg to the MCP server of iAgentBridge
Supported sources
- Source types RPGLE and SQLRPGLE
- Source members, IFS stream files, local files and workspace projects
- Selections are expanded to whole blocks (DCL-DS, DCL-PR, DCL-PROC, …)