It should be a preference setting when formatting the source
- align =
a = d;
bc = e;
- align keywords
name kwd(b);
name2 kwd(c);
- align datatype keywords and also align keywords after than
name int(3) kwd(b) kwd(d);
name2 pointer kwd(a) kwd(e);
- align datatype keywods and have 1 keyword per line
name int(3) kwd(b)
kwd(d);
name2 pointer kwd(a)
kwd(e);
Lot's of variations. What about splitting parameters, do we put them one
per line etc. etc.
From: Greg Wilburn <gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>
To: "'Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries'" <wdsci-l@xxxxxxxxxxxx>
Date: 06/19/2015 08:31 AM
Subject: Re: [WDSCI-L] Next release - Paste Overlay
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>
I like it. Key suggestion? Control-equals (similar to ctrl-/ and ctrl-\
handles the comments).
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck
Calabro
Sent: Thursday, June 18, 2015 6:17 PM
To: wdsci-l@xxxxxxxxxxxx
Subject: Re: [WDSCI-L] Next release - Paste Overlay
On 6/18/2015 4:11 PM,
MichaelQuigley@xxxxxxxxxx wrote:
But Roger may be proposing an easier work around. Simply paste in the
text
you're trying to copy from Excel, etc. Then block out the area for the "+
dlm +" and then do a block fill. Of course I'm sure Buck could propose
some kind of scripting to do that even easier, or at least point out how
scripting is lacking in Eclipse.
<grin> My work here is done... I no longer need reply on my own!
Seriously though, I'm a 35+ year RPG veteran. In my opinion, the
column-orientation that we like is part of the RPG aesthetic. We prefer:
dcl-s v_fulnam like(n_fulnam);
dcl-s v_addr1 like(n_addr1);
dcl-s v_city like(n_city);
over
dcl-s v_fulnam like(n_fulnam);
dcl-s v_addr1 like(n_addr1);
dcl-s v_city like(n_city);
The special RDi Alt-M, -D, -C and fill selection commands are a nice
touch, but I'm not sure if they (alone) make it easy to do the sort of
formatting I like to see. For instance, given this:
v_fulnam = %trim(v_fulnam) + ' ' + v_last;
v_addr1 = v_raddr1;
v_city = v_rcity;
I'd like to select the block of text, press a key and have the editor
align everything around the = sign:
v_fulnam = %trim(v_fulnam) + ' ' + v_last;
v_addr1 = v_raddr1;
v_city = v_rcity;
Pie in the sky? Probably. If I get some time next week I'll try to
write that plug-in code and see how it goes. So, yeah, I'm advocating a
macro / plug-in, but I'm willing to give it a whirl on my own.
Wish me luck!
--
--buck
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/wdsci-l.
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.