.st0{fill:#FFFFFF;}

Duplicate a line in RDi with CTRL/D 

 February 1, 2017

By  NickLitten

[thrive_headline_focus title=”CTRL + D = Duplicate a line of code” orientation=”left”]

Yes – Forget COPY/BEFORE/AFTER and quickly duplicate a line in RDi with CTRL/D.

It’s really that simple.

If, like me, you grew up with SEU as your terminal based editor choice – you will be used to Copy and Before or After. You might even get a little fancy and use the RePeat code to duplicate that line of code. You might even put on your Wizards hat and do a RPn to repeat a line multiple times… You probably feel quite fancy doing this in Rdi dont you?

I know that I did.

Duplicate a line in RDi with CTRL/D

But, I was just in RDi and accidentally discovered that CTRL/D duplicates any line that you are on. Great for quickly adding cloned lines and big fat comment blocks.

#bloodyBrilliant

NickLitten


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.

Nick Litten

related posts:




{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"cff50":{"name":"Main Accent","parent":-1},"a344d":{"name":"Accent Transparent","parent":"cff50"}},"gradients":[]},"palettes":[{"name":"Default","value":{"colors":{"cff50":{"val":"var(--tcb-skin-color-0)"},"a344d":{"val":"rgba(46, 138, 229, 0.85)","hsl_parent_dependency":{"h":210,"l":0.54,"s":0.78}}},"gradients":[]},"original":{"colors":{"cff50":{"val":"rgb(0, 178, 255)","hsl":{"h":198,"s":1,"l":0.5}},"a344d":{"val":"rgba(0, 178, 255, 0.85)","hsl_parent_dependency":{"h":198,"s":1,"l":0.5}}},"gradients":[]}}]}__CONFIG_colors_palette__

Get In Touch

I’m always looking for awesome input, feedback and critique!

>