rpg-end-code-blocksRPG End Code Blocks - This extension will auto add ending code blocks once you press enter for a RPGLE program. For example if you type If x=y; and press enter it will automatically add the matching EndIf; to the code and move the cursor to the second line indented based on VSCodes indentions. FeaturesThere are default code blocks setup but if you wish to customize them you can added this to the settings.json file and customize them as you see fit.
RequirementsThis will only work with ILE RPGLE Free Form Known IssuesSometimes it does not detect you are entering a code block. I think it depends on how the line started. Also the new SELECT x WHEN-IS clause will not work only SELECT; will work. It would add a ENDSL; on a EXEC SQL SELECT statement so this was a compromise. Release Notes1.0.0Initial release Github: https://github.com/thomprl/rpg-end-code-blocks Enjoy! |