A VS Code extension to convert RPGLE code to UPPERCASE, lowercase, and PascalCase — instantly.
Features
- To UPPERCASE — Transform selected text to all caps.
- To lowercase — Convert selected text to lowercase.
- To PascalCase — Intelligently capitalize each word, respecting RPGLE separators like
_,-,(,:,;, and whitespace.
All commands support multi-cursor and multi-selection out of the box.
Right-Click Context Menu
Commands appear directly in the right-click context menu — but only when editing a supported RPGLE file, keeping the menu clean in all other file types.
Supported file extensions:
| Extension | Language |
|---|---|
.rpg |
RPG |
.rpgle |
RPGLE (Free-format) |
.sqlrpg |
SQL RPG |
.sqlrpgle |
SQL RPGLE (Free-format) |
Usage
Option 1 — Right-Click Context Menu
- Open an
.rpgle,.sqlrpgle,.rpg, or.sqlrpgfile. - Select the text you want to convert.
- Right-click and choose a conversion from the context menu.
Option 2 — Command Palette
- Select the text you want to convert in any open file.
- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P). - Type and run one of:
| Command | Description |
|---|---|
RPGLE: To UPPERCASE |
Converts selection to ALL CAPS |
RPGLE: To lowercase |
Converts selection to all lowercase |
RPGLE: To PascalCase |
Converts selection to PascalCase |
Installation
- Open VS Code.
- Go to the Extensions view (
Ctrl+Shift+X). - Search for Case Converter RPGLE.
- Click Install.
Author
Made by unsafezero.
License
Licensed under the MIT License.