× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Michael

Yes, there's a key-sequence to reformat lines in RPG - it is a couple control keys and F - like Ctrl-Shift-F or Alt-Shift-F - you select what you want reformatted and use the magic keys - voila!

It does depend sometimes on selecting an appropriate set of lines - like to start selection with an IF - then everything you select is indented relative to the levels dependent on that IF.

Cheers
Vern

On 3/27/2017 8:14 PM, MichaelQuigley@xxxxxxxxxx wrote:
"WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx> wrote on 03/27/2017 06:55:58 PM:
----- Message from Buck Calabro <kc2hiz@xxxxxxxxx> on Mon, 27 Mar
2017 17:18:33 -0400 -----

To:

wdsci-l@xxxxxxxxxxxx

Subject:

Re: [WDSCI-L] Shortcuts Indent/Unindent

On 3/27/2017 4:47 PM, Tools/400 wrote:
Does RDi (9.5.1) provide functions and shortcuts for
indenting/unindenting selected source lines?
Yes!
It may seem a bit clunky but I got used to it.

First, select the lines to indent/outdent with Ctrl-L, not with the
normal Windows stream selection keys. I usually Ctrl-L the top line,
then Shift-Cursor Down to inclusively select lines. Although Cursor
Down to the bottom then Ctrl-L will also include all those lines too.
I'm just so used to Shift-Cursor to select that it's automatic.

Then:

To indent: Alt-F8
To outdent: Alt-F7

To remove the selection, Alt-U

--
--buck

Try wiki.midrange.com!

I believe that's Alt+L to start the block selection is it not?

Also, there are other auto-formatting options available depending on the
language you're coding at the time. Isn't it available to select some code
(by any means you choose) and then press Ctrl+F to format--I don't recall
off the top of my head.

Michael Quigley
Computer Services
The Way International
www.TheWay.org


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.