RPG Indent View is a Visual Studio Code extension that helps developers to read RPG code by opening it in a new tab with improved readability.
- Automatically show indents RPG code.
- Opens the formatted code in a new tab, leaving the original file unchanged.
- Improves code readability and maintainability for RPG developers.
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
- Search for "RPG Indent View".
- Click "Install" to add the extension to your editor.
-
Open an RPG code file in Visual Studio Code.
-
You have two ways to format and indent your RPG code:
-
Option 1: Using the Command Palette
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac) to open the Command Palette. - Type
Show RPG Code Indent"and select the command from the list.
- Press
-
Option 2: Using the Context Menu
- Right-click on the RPG file in the editor.
- Select Show RPG Code Indent" from the context menu.
-
-
A new tab will open with the RPG code properly formatted and indented.
- Visual Studio Code version 1.60 or later.
- The extension only works for RPG III.
- If you find any bugs or have suggestions for improvements, please report them on the Issues page.
It is modified so that it also indents the code of the RPT, RPGLE and SQLRPGLE sources
Contributions are welcome! If you'd like to improve the extension or add new features, feel free to fork the repository and submit a pull request.
This extension is licensed under the MIT License.
Enjoy!