I was happily editing some CLP code in RDi and very pleased with the Rational Developers automatic code reformatting: stretching out my Control Language code to fit the screen neatly. This is a nice enhancement to the code editing experience and blows the trusty old SEU workhorse out of the water….
I like how it stretches my code out beyond the 80 columns of SEU… until I try to look at it using SEU and then realize it’s chopped off the end. But it looks OK in RDi… but chopped in SEU… #aaargh
Here’s what it looks like in RDi:
But in SEU it’s chopped off:
Luckily RDi has a nice easy solution, which lets us overcome this limitation of the Stone-age Editing Utility.
Windows > Preferences > Remote Systems > Remote Systems LPEX Editor > IBM i Parsers > CL
So lets do some tweaking!
I played with it and like these settings the best:
For today at least 🙂
Now I can just run down the source typing a space (into a space) so it’s flagged as changed and the RDi parser re-sorts and aligns the code for me. In this case ending up like this:
Neat code in a Jiffy.
HINT: if you make layout changes they are only applied when a line is changed. So, do a SELECT ALL (CTRL/A) and then a CUT/PASTE on the entire source member you will immediately see the code in the new reformatted layout 🙂
IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Alpha Nerd and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and in the words of the most interesting man in the world: Stay thirsty my friend.
How to Install IBM Access Client Solutions (ACS)
5733XJ1 IBM i Access Client Solutions – QuickStartGuide
How to get a list of all files in an IFS folder
How to encrypt or hide CL/RPG Source Code in ILE Debug Views
Going the (Levenshtein) Distance in RPG Free
Don’t hardcode library names in your TURNOVER SQL source #youbigsilly
Install LANSA AXES – Automatic Web Interface for IBM i (AS/400) 5250 Applications
IFS File system error occurred. Error number 3021?
IBM i Data Obfuscation – Making Data Foggy Murky and Squinty